fixed cmd_access: do not use nick for NS_NOT_ON_USERLIST reply -> could be NULL
authorpk910 <philipp@zoelle1.de>
Tue, 20 Dec 2011 22:27:37 +0000 (23:27 +0100)
committerpk910 <philipp@zoelle1.de>
Tue, 20 Dec 2011 22:27:37 +0000 (23:27 +0100)
src/cmd_neonserv_access.c

index 7d253993602cff9ebbec29ea7e5122a52c98c64c..5f76d7975ad8808b9f2181420c6753e2c60b0a56 100644 (file)
@@ -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);
 }