prevent bots from being added twice
authorpk910 <philipp@zoelle1.de>
Thu, 23 Aug 2012 19:17:11 +0000 (21:17 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 23 Aug 2012 19:17:11 +0000 (21:17 +0200)
src/IRCParser.c

index 60b48d9fe342649c5436b8550feeeb42c5c4783e..25fda700044c47167d44c7e05817bae32a0ec7b6 100644 (file)
@@ -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
         }