diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_timedbans.cpp | 4 |
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; |