Log to serverlog when throwing out a server because of a bad nickname.
This commit is contained in:
parent
6eb9f03a13
commit
ffa772f3d4
|
@ -1290,6 +1290,8 @@ static void bad_nickname(struct Client *client_p, const char *nick)
|
||||||
sendto_server(NULL, NULL, CAP_TS6, NOCAPS,
|
sendto_server(NULL, NULL, CAP_TS6, NOCAPS,
|
||||||
":%s WALLOPS :Squitting %s because of bad nickname %s (NICKLEN mismatch?)",
|
":%s WALLOPS :Squitting %s because of bad nickname %s (NICKLEN mismatch?)",
|
||||||
me.id, client_p->name, nick);
|
me.id, client_p->name, nick);
|
||||||
|
ilog(L_SERVER, "Link %s cancelled, bad nickname %s sent (NICKLEN mismatch?)",
|
||||||
|
client_p->name, nick);
|
||||||
|
|
||||||
rb_snprintf(squitreason, sizeof squitreason,
|
rb_snprintf(squitreason, sizeof squitreason,
|
||||||
"Bad nickname introduced [%s]", nick);
|
"Bad nickname introduced [%s]", nick);
|
||||||
|
|
Loading…
Reference in New Issue