From 65863c30ad48d48c3d9b1fb2ab6dbf8648c9ab0f Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 23 Apr 2008 16:02:08 +0000 Subject: Fix from yesterday, properly fix timedbans, much neater git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9581 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 8 +------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3