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_cban.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/modules/m_cban.cpp') 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; } }; -- cgit v1.3.1-10-gc9f91