summaryrefslogtreecommitdiff
path: root/src/modules/m_cban.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-05-21 17:09:56 -0700
committerAttila Molnar <attilamolnar@hush.com>2013-05-21 17:09:56 -0700
commit4710844dcae83f54acd89d84a9c8dad607dfa17d (patch)
treef0f10444087fcf5b5c63c7ed1a672cb6ff550f5a /src/modules/m_cban.cpp
parent994787e907cee7f6ed1b8f0ddbec95900a0f470a (diff)
parent48033e9b3a708f265c0bc2d62460a6cefa70dd45 (diff)
Merge pull request #522 from SaberUK/master+xline-displayable
Convert XLine::Displayable to return a std::string.
Diffstat (limited to 'src/modules/m_cban.cpp')
-rw-r--r--src/modules/m_cban.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp
index 044aa45a5..5e629ed42 100644
--- a/src/modules/m_cban.cpp
+++ b/src/modules/m_cban.cpp
@@ -29,12 +29,15 @@
*/
class CBan : public XLine
{
-public:
+private:
+ std::string displaytext;
irc::string matchtext;
+public:
CBan(time_t s_time, long d, std::string src, std::string re, std::string ch)
: XLine(s_time, d, src, re, "CBAN")
{
+ this->displaytext = ch;
this->matchtext = ch.c_str();
}
@@ -51,9 +54,9 @@ public:
return false;
}
- const char* Displayable()
+ const std::string& Displayable()
{
- return matchtext.c_str();
+ return displaytext;
}
};