diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-23 16:02:08 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-23 16:02:08 +0000 |
commit | 65863c30ad48d48c3d9b1fb2ab6dbf8648c9ab0f (patch) | |
tree | acf934dbd2431a5779f0810c65243cc3e4f15ed9 /src | |
parent | fefc5fbd382573dfa73750eb4872ae00e39edbd6 (diff) |
Fix from yesterday, properly fix timedbans, much neater
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9581 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_timedbans.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index ea6979b80..693e72019 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -173,13 +173,7 @@ class ModuleTimedBans : public Module ServerInstance->PI->SendModeStr(safei->channel, std::string("-b ") + setban[2]); ServerInstance->SendMode(setban, 3, ServerInstance->FakeClient); - bool was_removed = true; - for (BanList::iterator j = cr->bans.begin(); j != cr->bans.end(); j++) - if (!strcasecmp(j->data, mask.c_str())) - was_removed = false; - - /* Fix for crash if user cycles before the ban expires */ - if (!was_removed) + if (ServerInstance->Modes->GetLastParse().empty()) TimedBanList.erase(safei); } else |