]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_cban Remove now unnecessary field CBan::displaytext
authorAttila Molnar <attilamolnar@hush.com>
Mon, 22 Aug 2016 14:55:07 +0000 (16:55 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 22 Aug 2016 14:55:07 +0000 (16:55 +0200)
src/modules/m_cban.cpp

index 7985affd469002692005c5d29c85bc23b7005eaf..42cff2850c0be3b2cba8ecfb5b993591ba9b4f95 100644 (file)
@@ -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;
        }
 };