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/botserv.cpp | |
| parent | 41e8d276023e8fefc22fb89c2f81ae17b8222155 (diff) | |
Use C++11's explicit override feature if available
Diffstat (limited to 'modules/pseudoclients/botserv.cpp')
| -rw-r--r-- | modules/pseudoclients/botserv.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/pseudoclients/botserv.cpp b/modules/pseudoclients/botserv.cpp index 7a9234f6f..59edf97cc 100644 --- a/modules/pseudoclients/botserv.cpp +++ b/modules/pseudoclients/botserv.cpp @@ -31,7 +31,7 @@ class BotServCore : public Module } - void OnPrivmsg(User *u, Channel *c, Anope::string &msg) + void OnPrivmsg(User *u, Channel *c, Anope::string &msg) anope_override { if (!u || !c || !c->ci || !c->ci->bi || msg.empty()) return; @@ -100,7 +100,7 @@ class BotServCore : public Module } } - EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> ¶ms) + EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> ¶ms) anope_override { if (this->fantasy_channel != NULL) { @@ -120,7 +120,7 @@ class BotServCore : public Module return EVENT_CONTINUE; } - void OnJoinChannel(User *user, Channel *c) + void OnJoinChannel(User *user, Channel *c) anope_override { if (c->ci && c->ci->bi) { @@ -144,7 +144,7 @@ class BotServCore : public Module } } - void OnLeaveChannel(User *u, Channel *c) + void OnLeaveChannel(User *u, Channel *c) anope_override { /* Channel is persistent, it shouldn't be deleted and the service bot should stay */ if (c->HasFlag(CH_PERSIST) || (c->ci && c->ci->HasFlag(CI_PERSIST))) @@ -170,7 +170,7 @@ class BotServCore : 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->BotServ) return EVENT_CONTINUE; @@ -186,7 +186,7 @@ class BotServCore : 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->BotServ) return; @@ -199,7 +199,7 @@ class BotServCore : public Module "name with one of the following characters: %s."), Config->ChanServ.c_str(), Config->BSFantasyCharacter.c_str()); } - EventReturn OnChannelModeSet(Channel *c, ChannelModeName Name, const Anope::string ¶m) + EventReturn OnChannelModeSet(Channel *c, ChannelModeName Name, const Anope::string ¶m) anope_override { if (Config->BSSmartJoin && Name == CMODE_BAN && c->ci && c->ci->bi && c->FindUser(c->ci->bi)) { |
