From 4ac62d7e3335e4ca5c8c77e343e172abeb0a38a1 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 16 Aug 2006 09:43:17 +0000 Subject: Optimizations git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4927 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 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); -- cgit v1.2.3