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_svshold.cpp | |
| parent | Remove the DEPRECATED_METHOD macro. (diff) | |
| download | inspircd++-c78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8.tar.gz inspircd++-c78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8.tar.bz2 inspircd++-c78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8.zip | |
Replace the override macro with the override keyword.
Diffstat (limited to 'src/modules/m_svshold.cpp')
| -rw-r--r-- | src/modules/m_svshold.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index 0aaf113f0..ede845fd8 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -42,19 +42,19 @@ public: this->nickname = nick; } - bool Matches(User* u) CXX11_OVERRIDE + bool Matches(User* u) override { if (u->nick == nickname) return true; return false; } - bool Matches(const std::string& s) CXX11_OVERRIDE + bool Matches(const std::string& s) override { return InspIRCd::Match(s, nickname); } - void DisplayExpiry() CXX11_OVERRIDE + void DisplayExpiry() override { if (!silent) { @@ -63,7 +63,7 @@ public: } } - const std::string& Displayable() CXX11_OVERRIDE + const std::string& Displayable() override { return nickname; } @@ -78,12 +78,12 @@ class SVSHoldFactory : public XLineFactory /** Generate an SVSHOLD */ - XLine* Generate(time_t set_time, unsigned long duration, const std::string& source, const std::string& reason, const std::string& xline_specific_mask) CXX11_OVERRIDE + XLine* Generate(time_t set_time, unsigned long duration, const std::string& source, const std::string& reason, const std::string& xline_specific_mask) override { return new SVSHold(set_time, duration, source, reason, xline_specific_mask); } - bool AutoApplyToUserList(XLine* x) CXX11_OVERRIDE + bool AutoApplyToUserList(XLine* x) override { return false; } @@ -99,7 +99,7 @@ class CommandSvshold : public Command flags_needed = 'o'; this->syntax = "<nickname> [<duration> :<reason>]"; } - CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE + CmdResult Handle(User* user, const Params& parameters) override { /* syntax: svshold nickname time :reason goes here */ /* 'time' is a human-readable timestring, like 2d3h2s. */ @@ -161,7 +161,7 @@ class CommandSvshold : public Command return CMD_SUCCESS; } - RouteDescriptor GetRouting(User* user, const Params& parameters) CXX11_OVERRIDE + RouteDescriptor GetRouting(User* user, const Params& parameters) override { return ROUTE_BROADCAST; } @@ -180,18 +180,18 @@ class ModuleSVSHold : public Module, public Stats::EventListener { } - void init() CXX11_OVERRIDE + void init() override { ServerInstance->XLines->RegisterFactory(&s); } - void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE + void ReadConfig(ConfigStatus& status) override { ConfigTag* tag = ServerInstance->Config->ConfValue("svshold"); silent = tag->getBool("silent", true); } - ModResult OnStats(Stats::Context& stats) CXX11_OVERRIDE + ModResult OnStats(Stats::Context& stats) override { if (stats.GetSymbol() != 'S') return MOD_RES_PASSTHRU; @@ -200,7 +200,7 @@ class ModuleSVSHold : public Module, public Stats::EventListener return MOD_RES_DENY; } - ModResult OnUserPreNick(LocalUser* user, const std::string& newnick) CXX11_OVERRIDE + ModResult OnUserPreNick(LocalUser* user, const std::string& newnick) override { XLine *rl = ServerInstance->XLines->MatchesLine("SVSHOLD", newnick); @@ -219,7 +219,7 @@ class ModuleSVSHold : public Module, public Stats::EventListener ServerInstance->XLines->UnregisterFactory(&s); } - Version GetVersion() CXX11_OVERRIDE + Version GetVersion() override { return Version("Implements SVSHOLD. Like Q-lines, but can only be added/removed by Services.", VF_COMMON | VF_VENDOR); } |
