projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added gnutls backend and moved backend code into new files
[ircu2.10.12-pk.git]
/
ircd
/
ircd_reply.c
diff --git
a/ircd/ircd_reply.c
b/ircd/ircd_reply.c
index d5641bec321049be60129b47ca01d7fc61d69dd1..256d18c5047c92f2ad5521eabca98ecce2f3b6f0 100644
(file)
--- 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;
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);
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);
va_end(vd.vd_args);
+
+ sendwallto_group_butone(&me, WALL_DESYNCH, NULL, "%s", message);
return 0;
}
return 0;
}