projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed multiple added bots (WHO asyncs)
[NeonServV5.git]
/
src
/
IRCParser.c
diff --git
a/src/IRCParser.c
b/src/IRCParser.c
index 675dc40ae7d7d6b3a0a6f129c2e524e6bf12e2db..bf7755142b7f9f7049a4a77fba4ce41b950dc7dd 100644
(file)
--- a/
src/IRCParser.c
+++ b/
src/IRCParser.c
@@
-340,8
+340,10
@@
static IRC_CMD(raw_join) {
return 1; //ignore 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
chan->botcount++;
if(isModeSet(chan->modes, 'D')) //if the bot joins a channel it could also be invisible