0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

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 6c77f1f74f
commit 4dd5d304eb

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