From 94bde6a26a0949288f5d1c55936829b140e7c2b6 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 16 Aug 2006 09:42:21 +0000 Subject: Wasnt checking channel name on ban deletion git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4926 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 6325fbb4d..2234e0479 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -141,7 +141,9 @@ class ModuleTimedBans : public Module { irc::string listitem = banmask.c_str(); irc::string target = i->mask.c_str(); - if (listitem == target) + irc::string tchan = i->channel.c_str(); + irc::string thischan = chan->name; + if ((listitem == target) && (tchan == thischan)) { TimedBanList.erase(i); break; -- cgit v1.2.3