fixed small (null) output issue in cmd_access
[NeonServV5.git] / 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))