From: Egor Date: Tue, 27 Aug 2024 15:59:09 +0000 (+0300) Subject: ircfmt: null nickname for 433 X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=97d5ec038cbab59e59726dc4a80bb1ab148c4cb3;p=patchyircd.git ircfmt: null nickname for 433 --- diff --git a/src/ircfmt.c b/src/ircfmt.c index 91db3ee..969c373 100644 --- a/src/ircfmt.c +++ b/src/ircfmt.c @@ -590,7 +590,7 @@ void err_erroneusnickname(struct client_data *client, const char *nick) // 432 } void err_nicknameinuse(struct client_data *client, const char *nick) // 433 { - copy_strf(&databuf, ":%s 433 %s %s :Nickname is already in use\r\n", hostname, client->nick, nick); + copy_strf(&databuf, ":%s 433 %s %s :Nickname is already in use\r\n", hostname, client->nick ? client->nick : "*", nick); } void err_usernotinchannel(struct client_data *client, const char *nick, struct channel *chan) // 441 {