From ff4d055e3e1a0541b8c784d0e51b853eef8e5d16 Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 20 Dec 2011 23:27:37 +0100 Subject: [PATCH] fixed cmd_access: do not use nick for NS_NOT_ON_USERLIST reply -> could be NULL --- src/cmd_neonserv_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1