From 39af36e058de47d30706ab3e5a5a7f183fee0eff Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 22 Apr 2008 16:09:03 +0000 Subject: Break! ...no actually, take the break out :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9578 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 7204cb86b..ea6979b80 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -169,6 +169,7 @@ class ModuleTimedBans : public Module if (ServerInstance->Config->AllowHalfop) cr->WriteAllExcept(ServerInstance->FakeClient, true, '%', empty, "NOTICE %s :*** Timed ban on %s expired.", cr->name, safei->mask.c_str()); + /* Removes the ban item for us, no ::erase() needed */ ServerInstance->PI->SendModeStr(safei->channel, std::string("-b ") + setban[2]); ServerInstance->SendMode(setban, 3, ServerInstance->FakeClient); @@ -186,8 +187,6 @@ class ModuleTimedBans : public Module /* Where the hell did our channel go?! */ TimedBanList.erase(safei); } - // 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