summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar brain2006-08-16 09:43:52 +0000
committerGravatar brain2006-08-16 09:43:52 +0000
commit0ccb233464fab4e2e886f9df364efb517addbbd6 (patch)
treee79eda38a114fbb1464381e5b9d71a583e45b5db
parentWasnt checking channel name on ban deletion (diff)
Optimizations
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4928 e03df62e-2008-0410-955e-edbf42e46eb7
-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 47ccfb2da..e562bfc1c 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -134,12 +134,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);