summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}