]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix more timedban stuff - possible infinite loop if ban expires after the channel...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 30 Jul 2006 01:36:58 +0000 (01:36 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 30 Jul 2006 01:36:58 +0000 (01:36 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4592 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_timedbans.cpp

index 25dccde6360881a94d5077f5b6744a5ef5eaa585..610057ae3a9fb1c21d3b75b4a0c79a6fbbd75a42 100644 (file)
@@ -177,6 +177,11 @@ class ModuleTimedBans : public Module
                                                Srv->SendMode(setban,3,temp);
                                                DELETE(temp);
                                        }
+                                       else
+                                       {
+                                               /* Where the hell did our channel go?! */
+                                               TimedBanList.erase(i);
+                                       }
                                        // we used to delete the item here, but we dont need to as the servermode above does it for us,
                                        break;
                                }