From 0ccb233464fab4e2e886f9df364efb517addbbd6 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 16 Aug 2006 09:43:52 +0000 Subject: Optimizations git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4928 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_timedbans.cpp') 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); -- cgit v1.3.1-10-gc9f91