fixed unused variable
authorpk910 <philipp@zoelle1.de>
Sun, 11 Dec 2011 06:34:22 +0000 (07:34 +0100)
committerpk910 <philipp@zoelle1.de>
Sun, 11 Dec 2011 06:34:22 +0000 (07:34 +0100)
src/IRCParser.c

index 9b91d21552ed8f6dc3f2f463c0ded662ee7d374a..3e7c0b5347d4c04858ccfc6fd622afd16a1406ba 100644 (file)
@@ -312,7 +312,6 @@ static IRC_CMD(raw_quit) {
     struct UserNode *user = getUserByMask(from);
     if(user == NULL) return 0;
     if(!is_firstBotSeeUser(client, user)) return 1; //we ignore it - but it's not a parse error
-    int keep_channel = 1;
     int registering = !stricmp(argv[0], "Registered");
     if((registering && (user->flags & USERFLAG_ISBOT))) return 1; //bot is registering - just ignore it
     delUser(user, 0); //a little bit crazy, but we want to delete the user on the channel's userlists - but not the users channel list
@@ -323,7 +322,7 @@ static IRC_CMD(raw_quit) {
         for(chanuser = getUserChannels(user, NULL); chanuser; chanuser = next) {
             next = getUserChannels(user, chanuser);
             if(chanuser->chan->chanbot == user)
-                keep_channel = checkChannelVisibility(chanuser->chan);
+                checkChannelVisibility(chanuser->chan);
         }
         //search the user representing the bot in the world of IRC
         struct ClientSocket *bot;