summaryrefslogtreecommitdiff
path: root/src/modules/m_chanfilter.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-11-21 13:05:17 +0000
committerPeter Powell <petpow@saberuk.com>2017-11-21 15:51:45 +0000
commit91e0af0fc4889f20d2f63426f8fe379674fc0393 (patch)
treed3e39ed4c011b42054994e48a289eee51db9d879 /src/modules/m_chanfilter.cpp
parent3013a9dfbf0c8c980dd59183c38a702e8179ee13 (diff)
Add the override keyword in places that it is missing.
GCCs warnings for this are much better than Clangs.
Diffstat (limited to 'src/modules/m_chanfilter.cpp')
-rw-r--r--src/modules/m_chanfilter.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp
index 90e266fc3..133c5180d 100644
--- a/src/modules/m_chanfilter.cpp
+++ b/src/modules/m_chanfilter.cpp
@@ -34,8 +34,7 @@ class ChanFilter : public ListModeBase
public:
ChanFilter(Module* Creator) : ListModeBase(Creator, "filter", 'g', "End of channel spamfilter list", 941, 940, false, "chanfilter") { }
- bool ValidateParam(User* user, Channel* chan, std::string &word)
- {
+ bool ValidateParam(User* user, Channel* chan, std::string& word) CXX11_OVERRIDE {
if (word.length() > 35)
{
user->WriteNumeric(935, chan->name, word, "%word is too long for censor list");
@@ -45,17 +44,17 @@ class ChanFilter : public ListModeBase
return true;
}
- void TellListTooLong(User* user, Channel* chan, std::string &word)
+ void TellListTooLong(User* user, Channel* chan, std::string& word) CXX11_OVERRIDE
{
user->WriteNumeric(939, chan->name, word, "Channel spamfilter list is full");
}
- void TellAlreadyOnList(User* user, Channel* chan, std::string &word)
+ void TellAlreadyOnList(User* user, Channel* chan, std::string& word) CXX11_OVERRIDE
{
user->WriteNumeric(937, chan->name, InspIRCd::Format("The word %s is already on the spamfilter list", word.c_str()));
}
- void TellNotSet(User* user, Channel* chan, std::string &word)
+ void TellNotSet(User* user, Channel* chan, std::string& word) CXX11_OVERRIDE
{
user->WriteNumeric(938, chan->name, "No such spamfilter word is set");
}