Log to serverlog when throwing out a server because of a bad nickname.

This commit is contained in:
Jilles Tjoelker 2009-01-16 23:10:49 +01:00
parent 6eb9f03a13
commit ffa772f3d4
1 changed files with 2 additions and 0 deletions

View File

@ -1290,6 +1290,8 @@ static void bad_nickname(struct Client *client_p, const char *nick)
sendto_server(NULL, NULL, CAP_TS6, NOCAPS,
":%s WALLOPS :Squitting %s because of bad nickname %s (NICKLEN mismatch?)",
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,
"Bad nickname introduced [%s]", nick);