summaryrefslogtreecommitdiff
path: root/src/modules/m_timedbans.cpp
diff options
context:
space:
mode:
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;