]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Tidyup op/halfop/voice list on part/quit
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 3 Feb 2006 17:37:36 +0000 (17:37 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 3 Feb 2006 17:37:36 +0000 (17:37 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3054 e03df62e-2008-0410-955e-edbf42e46eb7

src/channels.cpp

index 61f7d92caefe50b113ad5c0674cae2e349b43e1c..f067646d3358656ff94647e8846d1bf2ee7058e5 100644 (file)
@@ -173,7 +173,10 @@ void chanrec::DelUser(char* castuser)
                internal_userlist.erase(a);
                return;
        }
-       log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
+       /* Tidy up any others */
+       DelOppedUser(castuser);
+       DelHalfoppedUser(castuser);
+       DelVoicedUser(castuser);
 }
 
 void chanrec::AddOppedUser(char* castuser)
@@ -191,7 +194,6 @@ void chanrec::DelOppedUser(char* castuser)
                 internal_op_userlist.erase(a);
                 return;
         }
-        log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
 }
 
 void chanrec::AddHalfoppedUser(char* castuser)
@@ -209,7 +211,6 @@ void chanrec::DelHalfoppedUser(char* castuser)
                 internal_halfop_userlist.erase(a);
                 return; 
         }       
-        log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
 }
 
 void chanrec::AddVoicedUser(char* castuser)
@@ -227,7 +228,6 @@ void chanrec::DelVoicedUser(char* castuser)
                 internal_voice_userlist.erase(a);
                 return; 
         }       
-        log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
 }
 
 std::map<char*,char*> *chanrec::GetUsers()