From: pk910 Date: Sun, 5 Feb 2012 04:05:29 +0000 (+0100) Subject: fixed IRCParser.c: mark only bots as invisible when joining a +D channel X-Git-Tag: v5.3~27 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=e34a3e2341187a32fad128d3c56a851219dc359f fixed IRCParser.c: mark only bots as invisible when joining a +D channel --- diff --git a/src/IRCParser.c b/src/IRCParser.c index 91b4938..c499982 100644 --- a/src/IRCParser.c +++ b/src/IRCParser.c @@ -219,7 +219,7 @@ static IRC_CMD(raw_join) { putsock(client, "MODE %s +b", chan->name); } else if(!isUserOnChan(user, chan) && ((chan->flags & CHANFLAG_RECEIVED_USERLIST) || isBot(user))) { struct ChanUser *chanuser = addChanUser(chan, user); - if(isModeSet(chan->modes, 'D')) + if(isBot(user) && isModeSet(chan->modes, 'D')) //if the bot joins a channel it could also be invisible chanuser->flags |= CHANUSERFLAG_INVISIBLE; if(!noEvent) { if(wasRegistering)