diff options
author | Adam <Adam@anope.org> | 2012-02-18 15:04:26 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-18 15:04:26 -0500 |
commit | ee5cd8493e34a1c049066ead25e9094b30cd49b5 (patch) | |
tree | 846c6dcd9bb2c4d721c6290a9b9d6b6ed880acdb /modules/pseudoclients/global.cpp | |
parent | 41e8d276023e8fefc22fb89c2f81ae17b8222155 (diff) |
Use C++11's explicit override feature if available
Diffstat (limited to 'modules/pseudoclients/global.cpp')
-rw-r--r-- | modules/pseudoclients/global.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/pseudoclients/global.cpp b/modules/pseudoclients/global.cpp index 33fa5cb21..1d3a2b7b1 100644 --- a/modules/pseudoclients/global.cpp +++ b/modules/pseudoclients/global.cpp @@ -27,7 +27,7 @@ class MyGlobalService : public GlobalService public: MyGlobalService(Module *m) : GlobalService(m) { } - void SendGlobal(BotInfo *sender, const Anope::string &source, const Anope::string &message) + void SendGlobal(BotInfo *sender, const Anope::string &source, const Anope::string &message) anope_override { if (Me->GetLinks().empty()) return; @@ -61,25 +61,25 @@ class GlobalCore : public Module ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); } - void OnRestart() + void OnRestart() anope_override { if (Config->GlobalOnCycle) global->SendGlobal(findbot(Config->Global), "", Config->GlobalOnCycleMessage); } - void OnShutdown() + void OnShutdown() anope_override { if (Config->GlobalOnCycle) global->SendGlobal(findbot(Config->Global), "", Config->GlobalOnCycleMessage); } - void OnNewServer(Server *s) + void OnNewServer(Server *s) anope_override { if (Config->GlobalOnCycle && !Config->GlobalOnCycleUP.empty()) s->Notice(findbot(Config->Global), Config->GlobalOnCycleUP); } - EventReturn OnPreHelp(CommandSource &source, const std::vector<Anope::string> ¶ms) + EventReturn OnPreHelp(CommandSource &source, const std::vector<Anope::string> ¶ms) anope_override { if (!params.empty() || source.owner->nick != Config->Global) return EVENT_CONTINUE; |