summaryrefslogtreecommitdiff
path: root/src/modules/m_cban.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-08-22 16:54:25 +0200
committerAttila Molnar <attilamolnar@hush.com>2016-08-22 16:54:25 +0200
commit40f09daa15e4ca163c4222de293b11dc5ae57a23 (patch)
treeb79e8313c26f07ab75c66ad2c254e7699b5b6995 /src/modules/m_cban.cpp
parentecef36edcab5219ce1a759eb0d2d24e061b4e886 (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.cpp8
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()