summaryrefslogtreecommitdiff
path: root/src/modules/m_exemptchanops.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_exemptchanops.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_exemptchanops.cpp')
-rw-r--r--src/modules/m_exemptchanops.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/m_exemptchanops.cpp b/src/modules/m_exemptchanops.cpp
index 0c67037f0..52e7c4dad 100644
--- a/src/modules/m_exemptchanops.cpp
+++ b/src/modules/m_exemptchanops.cpp
@@ -28,8 +28,7 @@ class ExemptChanOps : public ListModeBase
public:
ExemptChanOps(Module* Creator) : ListModeBase(Creator, "exemptchanops", 'X', "End of channel exemptchanops list", 954, 953, false, "exemptchanops") { }
- bool ValidateParam(User* user, Channel* chan, std::string &word)
- {
+ bool ValidateParam(User* user, Channel* chan, std::string& word) CXX11_OVERRIDE {
std::string::size_type p = word.find(':');
if (p == std::string::npos)
{
@@ -53,17 +52,17 @@ class ExemptChanOps : 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(959, chan->name, word, "Channel exemptchanops 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(957, chan->name, InspIRCd::Format("The word %s is already on the exemptchanops 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(958, chan->name, "No such exemptchanops word is set");
}