projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2ab2bb
)
prevent bots from being added twice
author
pk910
<philipp@zoelle1.de>
Thu, 23 Aug 2012 19:17:11 +0000
(21:17 +0200)
committer
pk910
<philipp@zoelle1.de>
Thu, 23 Aug 2012 19:17:11 +0000
(21:17 +0200)
src/IRCParser.c
patch
|
blob
|
history
diff --git
a/src/IRCParser.c
b/src/IRCParser.c
index 60b48d9fe342649c5436b8550feeeb42c5c4783e..25fda700044c47167d44c7e05817bae32a0ec7b6 100644
(file)
--- a/
src/IRCParser.c
+++ b/
src/IRCParser.c
@@
-188,7
+188,7
@@
static IRC_CMD(raw_join) {
event_registered(user, from);
user->flags &= ~USERFLAG_WAS_REGISTERING;
} else if(!(chan->flags & CHANFLAG_RECEIVED_USERLIST)) {
- if(
!isBot(user)) {
+ if(
client->user != user) { //bots are allowed to add themselves
DESYNCHRONIZE(cache_sync);
return 1; //ignore join
}