added bot/ircop mark to cmd_nicklist
[NeonServV5.git] / src / IRCParser.c
index 0188de9b6798918c21b6a300a9b121ad403120c6..0f6c6922603ae15db0f3a71cb1551fca148b4417 100644 (file)
@@ -188,10 +188,13 @@ static IRC_CMD(raw_join) {
         event_registered(user, from);
         user->flags &= ~USERFLAG_WAS_REGISTERING;
     } else if(!(chan->flags & CHANFLAG_RECEIVED_USERLIST)) {
+        if(!isBot(user))
+            return 1; //ignore join
+        
         chanuser = addChanUser(chan, user);
         chanuser->visCount = 1;
         
-        if(isBot(user) && isModeSet(chan->modes, 'D')) //if the bot joins a channel it could also be invisible
+        if(isModeSet(chan->modes, 'D')) //if the bot joins a channel it could also be invisible
             chanuser->flags |= CHANUSERFLAG_INVISIBLE;
         
         get_userlist_with_invisible(chan, 0, got_channel_userlist, chanuser);