From c471de147786a8324172b593b87f2965b67fed8d Mon Sep 17 00:00:00 2001 From: pk910 Date: Fri, 7 Sep 2012 19:14:08 +0200 Subject: [PATCH] fixed multiple added bots (WHO asyncs) --- src/IRCParser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.20.1