From: pk910 Date: Sat, 1 Sep 2012 21:33:35 +0000 (+0200) Subject: fixed viscount update when another bot joins a channel X-Git-Tag: v5.5~6 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=f386fef522124e3a13dbedb8a147fd054aa318ce;hp=05c8f77dd9d441e588b8a3ec2547bb1874ac0914 fixed viscount update when another bot joins a channel --- diff --git a/src/IRCParser.c b/src/IRCParser.c index f7ff777..1d53ec2 100644 --- a/src/IRCParser.c +++ b/src/IRCParser.c @@ -187,7 +187,7 @@ static IRC_CMD(raw_join) { //join user to an existing channel chanuser = addChanUser(chan, user); chanuser->visCount = 1; - if(isBot(user)) { + if(isBot(user) && client->user == user) { if(isModeSet(chan->modes, 'D')) //if the bot joins a channel it could also be invisible chanuser->flags |= CHANUSERFLAG_INVISIBLE; increase_viscount_butone(chan, chanuser); @@ -210,7 +210,7 @@ static IRC_CMD(raw_join) { chanuser = getChanUser(user, chan); chanuser->visCount++; - if(isBot(user) && !(chanuser->flags & CHANUSERFLAG_INVISIBLE)) + if(isBot(user) && client->user == user) increase_viscount_butone(chan, chanuser); //if multiple bots see the user, it can't be invisible