diff options
| author | 2006-08-16 09:42:08 +0000 | |
|---|---|---|
| committer | 2006-08-16 09:42:08 +0000 | |
| commit | c1dda8a50fa58acf7da28575b42f97492852342f (patch) | |
| tree | 9ccfc1787442b7a9f4edc8727f200998de2388a7 /src/modules/m_timedbans.cpp | |
| parent | Backport (diff) | |
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
Diffstat (limited to 'src/modules/m_timedbans.cpp')
| -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 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; |
