From: pk910 Date: Fri, 7 Sep 2012 17:14:08 +0000 (+0200) Subject: fixed multiple added bots (WHO asyncs) X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=c471de147786a8324172b593b87f2965b67fed8d;hp=d37738e35436f45fb1ff0f9b882a0de19dffb410 fixed multiple added bots (WHO asyncs) --- diff --git a/src/IRCParser.c b/src/IRCParser.c index 675dc40..bf77551 100644 --- a/src/IRCParser.c +++ b/src/IRCParser.c @@ -340,8 +340,10 @@ static IRC_CMD(raw_join) { return 1; //ignore join } - chanuser = addChanUser(chan, user); - chanuser->visCount = 1; + if(!(chanuser = getChanUser(user, chan))) { + chanuser = addChanUser(chan, user); + } + chanuser->visCount++; chan->botcount++; if(isModeSet(chan->modes, 'D')) //if the bot joins a channel it could also be invisible