summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_timedbans.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index 2234e0479..d933c7f13 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -137,12 +137,12 @@ class ModuleTimedBans : public Module
virtual int OnDelBan(userrec* source, chanrec* chan, const std::string &banmask)
{
+ irc::string listitem = banmask.c_str();
+ irc::string thischan = chan->name;
for (timedbans::iterator i = TimedBanList.begin(); i < TimedBanList.end(); i++)
{
- irc::string listitem = banmask.c_str();
irc::string target = i->mask.c_str();
irc::string tchan = i->channel.c_str();
- irc::string thischan = chan->name;
if ((listitem == target) && (tchan == thischan))
{
TimedBanList.erase(i);