diff options
| author | 2019-01-25 02:52:11 +0000 | |
|---|---|---|
| committer | 2019-01-25 02:52:11 +0000 | |
| commit | c78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8 (patch) | |
| tree | 4d7b4e6135e4b8340698419a83bc29edec18a5ea /src/modules/m_showwhois.cpp | |
| parent | Remove the DEPRECATED_METHOD macro. (diff) | |
Replace the override macro with the override keyword.
Diffstat (limited to 'src/modules/m_showwhois.cpp')
| -rw-r--r-- | src/modules/m_showwhois.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index d01e1a83b..58109a67d 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -55,7 +55,7 @@ class WhoisNoticeCmd : public Command ") did a /whois on you"); } - CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE + CmdResult Handle(User* user, const Params& parameters) override { User* dest = ServerInstance->FindNick(parameters[0]); if (!dest) @@ -85,7 +85,7 @@ class ModuleShowwhois : public Module, public Whois::EventListener { } - void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE + void ReadConfig(ConfigStatus& status) override { ConfigTag* tag = ServerInstance->Config->ConfValue("showwhois"); @@ -93,12 +93,12 @@ class ModuleShowwhois : public Module, public Whois::EventListener ShowWhoisFromOpers = tag->getBool("showfromopers", true); } - Version GetVersion() CXX11_OVERRIDE + Version GetVersion() override { return Version("Allows opers to set +W to see when a user uses WHOIS on them",VF_OPTCOMMON|VF_VENDOR); } - void OnWhois(Whois::Context& whois) CXX11_OVERRIDE + void OnWhois(Whois::Context& whois) override { User* const source = whois.GetSource(); User* const dest = whois.GetTarget(); |
