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_cban.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_cban.cpp')
-rw-r--r-- | src/modules/m_cban.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 2a969bec7..7985affd4 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -29,14 +29,14 @@ class CBan : public XLine { private: std::string displaytext; - irc::string matchtext; + std::string matchtext; public: CBan(time_t s_time, long d, const std::string& src, const std::string& re, const std::string& ch) : XLine(s_time, d, src, re, "CBAN") + , matchtext(ch) { this->displaytext = ch; - this->matchtext = ch.c_str(); } // XXX I shouldn't have to define this @@ -47,9 +47,7 @@ public: bool Matches(const std::string &s) { - if (matchtext == s) - return true; - return false; + return irc::equals(matchtext, s); } const std::string& Displayable() |