diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-05-21 17:09:56 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-05-21 17:09:56 -0700 |
commit | 4710844dcae83f54acd89d84a9c8dad607dfa17d (patch) | |
tree | f0f10444087fcf5b5c63c7ed1a672cb6ff550f5a /src/modules/m_svshold.cpp | |
parent | 994787e907cee7f6ed1b8f0ddbec95900a0f470a (diff) | |
parent | 48033e9b3a708f265c0bc2d62460a6cefa70dd45 (diff) |
Merge pull request #522 from SaberUK/master+xline-displayable
Convert XLine::Displayable to return a std::string.
Diffstat (limited to 'src/modules/m_svshold.cpp')
-rw-r--r-- | src/modules/m_svshold.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
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; } }; |