X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fircd_reply.c;h=256d18c5047c92f2ad5521eabca98ecce2f3b6f0;hb=refs%2Fheads%2Fupstream;hp=d5641bec321049be60129b47ca01d7fc61d69dd1;hpb=fc21303989a07d6091ef684150db29c49f682614;p=ircu2.10.12-pk.git diff --git a/ircd/ircd_reply.c b/ircd/ircd_reply.c index d5641be..256d18c 100644 --- a/ircd/ircd_reply.c +++ b/ircd/ircd_reply.c @@ -50,17 +50,18 @@ int protocol_violation(struct Client* cptr, const char* pattern, ...) { struct VarData vd; + char message[BUFSIZE]; assert(pattern); assert(cptr); vd.vd_format = pattern; va_start(vd.vd_args, pattern); - - sendwallto_group_butone(&me, WALL_DESYNCH, NULL, - "Protocol Violation from %s: %v", cli_name(cptr), &vd); - + ircd_snprintf(NULL, message, sizeof(message), + "Protocol Violation from %s: %v", cli_name(cptr), &vd); va_end(vd.vd_args); + + sendwallto_group_butone(&me, WALL_DESYNCH, NULL, "%s", message); return 0; }