summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-08-22 16:55:07 +0200
committerAttila Molnar <attilamolnar@hush.com>2016-08-22 16:55:07 +0200
commitdfea56312886797f3e611cf3f1b72e43a8a365fa (patch)
treee41dfda22f477e815449d75c805e9565a66665c9
parent40f09daa15e4ca163c4222de293b11dc5ae57a23 (diff)
m_cban Remove now unnecessary field CBan::displaytext
-rw-r--r--src/modules/m_cban.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp
index 7985affd4..42cff2850 100644
--- a/src/modules/m_cban.cpp
+++ b/src/modules/m_cban.cpp
@@ -28,7 +28,6 @@
class CBan : public XLine
{
private:
- std::string displaytext;
std::string matchtext;
public:
@@ -36,7 +35,6 @@ public:
: XLine(s_time, d, src, re, "CBAN")
, matchtext(ch)
{
- this->displaytext = ch;
}
// XXX I shouldn't have to define this
@@ -52,7 +50,7 @@ public:
const std::string& Displayable()
{
- return displaytext;
+ return matchtext;
}
};