From: pk910 Date: Tue, 20 Dec 2011 22:27:37 +0000 (+0100) Subject: fixed cmd_access: do not use nick for NS_NOT_ON_USERLIST reply -> could be NULL X-Git-Tag: v5.3~128 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=ff4d055e3e1a0541b8c784d0e51b853eef8e5d16 fixed cmd_access: do not use nick for NS_NOT_ON_USERLIST reply -> could be NULL --- diff --git a/src/cmd_neonserv_access.c b/src/cmd_neonserv_access.c index 7d25399..5f76d79 100644 --- a/src/cmd_neonserv_access.c +++ b/src/cmd_neonserv_access.c @@ -131,7 +131,7 @@ static void neonserv_cmd_access_async1(struct ClientSocket *client, struct Clien } else reply(textclient, user, "NS_NOT_ON_USERLIST", nick, chan->name); } else - reply(textclient, user, "NS_NOT_ON_USERLIST", nick, chan->name); + reply(textclient, user, "NS_NOT_ON_USERLIST", (nick ? nick : auth), chan->name); if(target && (target->flags & USERFLAG_ISIRCOP)) reply(textclient, user, "NS_A_IS_IRCOP", nick); }