From 2a81a451185b41ca563e6a43d24a054050ec82ee Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 30 Jul 2006 01:36:58 +0000 Subject: 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 --- src/modules/m_timedbans.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules') 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; } -- cgit v1.2.3