summaryrefslogtreecommitdiff
path: root/src/modules/m_timedbans.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-16 09:42:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-16 09:42:21 +0000
commit94bde6a26a0949288f5d1c55936829b140e7c2b6 (patch)
tree315ade9f7e40228e2e9223fc827f294d959d3482 /src/modules/m_timedbans.cpp
parent5f16ce6270c611111c22b8a656c6b230bf877933 (diff)
Wasnt checking channel name on ban deletion
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4926 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_timedbans.cpp')
-rw-r--r--src/modules/m_timedbans.cpp4
1 files changed, 3 insertions, 1 deletions
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;