From 48033e9b3a708f265c0bc2d62460a6cefa70dd45 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 5 May 2013 19:36:46 +0100 Subject: Convert XLine::Displayable to return a std::string. --- src/modules/m_svshold.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/modules/m_svshold.cpp') diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index bd80bb048..d35d5f3ba 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -30,12 +30,12 @@ class SVSHold : public XLine { public: - irc::string nickname; + std::string nickname; SVSHold(time_t s_time, long d, std::string src, std::string re, std::string nick) : XLine(s_time, d, src, re, "SVSHOLD") { - this->nickname = nick.c_str(); + this->nickname = nick; } bool Matches(User *u) @@ -47,14 +47,12 @@ public: bool Matches(const std::string &s) { - if (nickname == s) - return true; - return false; + return InspIRCd::Match(s, nickname); } - const char* Displayable() + const std::string& Displayable() { - return nickname.c_str(); + return nickname; } }; -- cgit v1.2.3