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); |
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; |
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 |
} |
} |