diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-06-05 23:11:50 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-05 23:11:50 +0200 |
commit | d87bfc277858543ff14cd43f4222c66362464094 (patch) | |
tree | ecc4252e97d07bdf935b9af751087d5b6abc435c /src/modules/m_shun.cpp | |
parent | f4d8359382153309e67a6b344ae503c321653c81 (diff) |
Remove unnecessary string copies and dead code
Diffstat (limited to 'src/modules/m_shun.cpp')
-rw-r--r-- | src/modules/m_shun.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index 21959e400..8bf4d30e7 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -30,10 +30,10 @@ class Shun : public XLine public: std::string matchtext; - Shun(time_t s_time, long d, std::string src, std::string re, std::string shunmask) + Shun(time_t s_time, long d, const std::string& src, const std::string& re, const std::string& shunmask) : XLine(s_time, d, src, re, "SHUN") + , matchtext(shunmask) { - this->matchtext = shunmask; } ~Shun() |