From c1dda8a50fa58acf7da28575b42f97492852342f Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 16 Aug 2006 09:42:08 +0000 Subject: Wasnt checking channel name on ban deletion git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4925 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modules/m_timedbans.cpp') diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index a90d478ff..47ccfb2da 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -138,7 +138,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.3.1-10-gc9f91