fixed small (null) output issue in cmd_access
authorpk910 <philipp@zoelle1.de>
Thu, 12 Jan 2012 13:45:13 +0000 (14:45 +0100)
committerpk910 <philipp@zoelle1.de>
Thu, 12 Jan 2012 13:45:13 +0000 (14:45 +0100)
src/cmd_neonserv_access.c

index d036bf8bceb69251e6174c6c055bd52f4c1853b1..25b2501c96b6008f34424a8a60fe9602e2fa287d 100644 (file)
@@ -133,7 +133,7 @@ static void neonserv_cmd_access_async1(struct ClientSocket *client, struct Clien
             else
                 reply(textclient, user, "NS_A_LACKS_ACCESS_BUT_GOD_NICK", auth, 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);
     } else
         reply(textclient, user, "NS_NOT_ON_USERLIST", (nick ? nick : auth), chan->name);
     if(target && (target->flags & USERFLAG_ISIRCOP))