diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-22 16:09:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-22 16:09:03 +0000 |
commit | 39af36e058de47d30706ab3e5a5a7f183fee0eff (patch) | |
tree | e4ae09dde59f55cf3bdef7475c2bff2ea60134f8 /src/modules | |
parent | b9a3d9e71fda55787cb754c702fe343186d175e7 (diff) |
Break! ...no actually, take the break out :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9578 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_timedbans.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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; } } } |