diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-22 16:54:25 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-22 16:54:25 +0200 |
commit | 40f09daa15e4ca163c4222de293b11dc5ae57a23 (patch) | |
tree | b79e8313c26f07ab75c66ad2c254e7699b5b6995 /src/modules/m_timedbans.cpp | |
parent | ecef36edcab5219ce1a759eb0d2d24e061b4e886 (diff) |
Switch to irc::equals() from irc::string in modules that use it for comparing names of IRC objects
Diffstat (limited to 'src/modules/m_timedbans.cpp')
-rw-r--r-- | src/modules/m_timedbans.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 9a6824793..f3fe38a3c 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -147,14 +147,13 @@ class BanWatcher : public ModeWatcher if (adding) return; - irc::string listitem = banmask.c_str(); for (timedbans::iterator i = TimedBanList.begin(); i != TimedBanList.end(); ++i) { if (i->chan != chan) continue; - irc::string target = i->mask.c_str(); - if (listitem == target) + const std::string& target = i->mask; + if (irc::equals(banmask, target)) { TimedBanList.erase(i); break; |