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/chanserv.cpp | |
| parent | 41e8d276023e8fefc22fb89c2f81ae17b8222155 (diff) | |
Use C++11's explicit override feature if available
Diffstat (limited to 'modules/pseudoclients/chanserv.cpp')
| -rw-r--r-- | modules/pseudoclients/chanserv.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp index 33ea10a64..b5deaf284 100644 --- a/modules/pseudoclients/chanserv.cpp +++ b/modules/pseudoclients/chanserv.cpp @@ -18,7 +18,7 @@ class ExpireCallback : public CallBack public: ExpireCallback(Module *owner) : CallBack(owner, Config->ExpireTimeout, Anope::CurTime, true) { } - void Tick(time_t) + void Tick(time_t) anope_override { if (!Config->CSExpire || noexpire || readonly) return; @@ -69,7 +69,7 @@ class ChanServCore : public Module ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); } - EventReturn OnBotPrivmsg(User *u, BotInfo *bi, Anope::string &message) + EventReturn OnBotPrivmsg(User *u, BotInfo *bi, Anope::string &message) anope_override { if (Config->CSOpersOnly && !u->HasMode(UMODE_OPER) && bi->nick == Config->ChanServ) { @@ -80,7 +80,7 @@ class ChanServCore : public Module return EVENT_CONTINUE; } - void OnDelCore(NickCore *nc) + void OnDelCore(NickCore *nc) anope_override { // XXX this is slightly inefficient for (registered_channel_map::const_iterator it = RegisteredChannelList.begin(), it_end = RegisteredChannelList.end(); it != it_end;) @@ -149,7 +149,7 @@ class ChanServCore : public Module } } - 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->ChanServ) return EVENT_CONTINUE; @@ -164,7 +164,7 @@ class ChanServCore : public Module return EVENT_CONTINUE; } - void OnPostHelp(CommandSource &source, const std::vector<Anope::string> ¶ms) + void OnPostHelp(CommandSource &source, const std::vector<Anope::string> ¶ms) anope_override { if (!params.empty() || source.owner->nick != Config->ChanServ) return; |
