/[svn]/branches/newio/src/send.c
ViewVC logotype

Diff of /branches/newio/src/send.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2651 by michael, Mon Nov 18 18:12:04 2013 UTC revision 2652 by michael, Wed Dec 11 12:32:04 2013 UTC
# Line 785  sendto_match_servs(struct Client *source Line 785  sendto_match_servs(struct Client *source
785    struct Client *target_p;    struct Client *target_p;
786    dlink_node *ptr;    dlink_node *ptr;
787    char buffer[IRCD_BUFSIZE];    char buffer[IRCD_BUFSIZE];
   int found = 0;  
788    
789    va_start(args, pattern);    va_start(args, pattern);
790    vsnprintf(buffer, sizeof(buffer), pattern, args);    vsnprintf(buffer, sizeof(buffer), pattern, args);
# Line 811  sendto_match_servs(struct Client *source Line 810  sendto_match_servs(struct Client *source
810         * match() again, if !IsCapable()         * match() again, if !IsCapable()
811         */         */
812        target_p->from->localClient->serial = current_serial;        target_p->from->localClient->serial = current_serial;
       found++;  
813    
814        if (!IsCapable(target_p->from, cap))        if (!IsCapable(target_p->from, cap))
815          continue;          continue;
# Line 845  sendto_anywhere(struct Client *to, struc Line 843  sendto_anywhere(struct Client *to, struc
843    if (MyClient(to))    if (MyClient(to))
844    {    {
845      if (IsServer(from))      if (IsServer(from))
846      {        sprintf(buffer, ":%s", from->name);
       if (IsCapable(to, CAP_TS6) && HasID(from))  
         sprintf(buffer, ":%s", from->id);  
       else  
         sprintf(buffer, ":%s", from->name);  
     }  
847      else      else
848        sprintf(buffer, ":%s!%s@%s", from->name, from->username, from->host);        sprintf(buffer, ":%s!%s@%s", from->name, from->username, from->host);
849    }    }

Legend:
Removed from v.2651  
changed lines
  Added in v.2652

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28