summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-30 01:36:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-30 01:36:58 +0000
commit2a81a451185b41ca563e6a43d24a054050ec82ee (patch)
tree0fa22acaee70f0f6173a60f3cd03673fe5bddca2
parentba1807932b9a22b58f3705d70b1b92b4cc959614 (diff)
Fix more timedban stuff - possible infinite loop if ban expires after the channel has been deleted (and/or re-created under the same name)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4592 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_timedbans.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index 25dccde63..610057ae3 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -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;
}