diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-23 19:37:03 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-23 19:37:03 +0200 |
commit | bcdc3b0bb0ba957a9e99cd6db7f1242a9e587400 (patch) | |
tree | fe0c0962384f5f8aa83658fd5897aa13e29ce22e /src/modules/m_cban.cpp | |
parent | 2df0de3c9212f7ea74fcb9a0ccf20990e47e9f2e (diff) | |
parent | 0aa6c4134011006e6166c72d9c3162b054c01bbe (diff) |
Merge branch 'master+ircstring'
Diffstat (limited to 'src/modules/m_cban.cpp')
-rw-r--r-- | src/modules/m_cban.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 2a969bec7..42cff2850 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -28,15 +28,13 @@ 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,14 +45,12 @@ public: bool Matches(const std::string &s) { - if (matchtext == s) - return true; - return false; + return irc::equals(matchtext, s); } const std::string& Displayable() { - return displaytext; + return matchtext; } }; |