fixed "Net Rider" kick crash
authorpk910 <philipp@zoelle1.de>
Thu, 15 Dec 2011 19:01:07 +0000 (20:01 +0100)
committerpk910 <philipp@zoelle1.de>
Thu, 15 Dec 2011 19:01:07 +0000 (20:01 +0100)
src/IRCParser.c

index c3fe086640afe7b54797ff80ee914bf5c879d8b8..d3c97a4955373692757171e140dcd0d58f998286 100644 (file)
@@ -388,7 +388,7 @@ static IRC_CMD(raw_kick) {
     struct UserNode *target = getUserByNick(argv[1]);
     struct ChanNode *chan = getChanByName(argv[0]);
     if(chan == NULL || target == NULL) return 0;
-    if(((!isBot(user) && chan->chanbot != client->user) || (isBot(user) && client->user != user))) return 1; //we ignore it - but it's not a parse error
+    if(((!isBot(target) && chan->chanbot != client->user) || (isBot(target) && client->user != target))) return 1; //we ignore it - but it's not a parse error
     int keep_channel = 1;
     if(isUserOnChan(target, chan) && (chan->flags & CHANFLAG_RECEIVED_USERLIST)) {
         if(user == NULL) {