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/commands/os_ignore.cpp | |
parent | 41e8d276023e8fefc22fb89c2f81ae17b8222155 (diff) |
Use C++11's explicit override feature if available
Diffstat (limited to 'modules/commands/os_ignore.cpp')
-rw-r--r-- | modules/commands/os_ignore.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/commands/os_ignore.cpp b/modules/commands/os_ignore.cpp index 526e19775..f2012f212 100644 --- a/modules/commands/os_ignore.cpp +++ b/modules/commands/os_ignore.cpp @@ -19,7 +19,7 @@ class OSIgnoreService : public IgnoreService public: OSIgnoreService(Module *o) : IgnoreService(o) { } - void AddIgnore(const Anope::string &mask, const Anope::string &creator, const Anope::string &reason, time_t delta = Anope::CurTime) + void AddIgnore(const Anope::string &mask, const Anope::string &creator, const Anope::string &reason, time_t delta = Anope::CurTime) anope_override { /* If it s an existing user, we ignore the hostmask. */ Anope::string realmask = mask; @@ -67,7 +67,7 @@ class OSIgnoreService : public IgnoreService } } - bool DelIgnore(const Anope::string &mask) + bool DelIgnore(const Anope::string &mask) anope_override { for (std::list<IgnoreData>::iterator it = this->ignores.begin(), it_end = this->ignores.end(); it != it_end; ++it) { @@ -82,7 +82,7 @@ class OSIgnoreService : public IgnoreService return false; } - IgnoreData *Find(const Anope::string &mask) + IgnoreData *Find(const Anope::string &mask) anope_override { User *u = finduser(mask); std::list<IgnoreData>::iterator ign = this->ignores.begin(), ign_end = this->ignores.end(); @@ -263,7 +263,7 @@ class CommandOSIgnore : public Command this->SetSyntax(_("CLEAR")); } - void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) + void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) anope_override { const Anope::string &cmd = params[0]; @@ -281,7 +281,7 @@ class CommandOSIgnore : public Command return; } - bool OnHelp(CommandSource &source, const Anope::string &subcommand) + bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override { this->SendSyntax(source); source.Reply(" "); @@ -318,7 +318,7 @@ class OSIgnore : 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 (!u->HasMode(UMODE_OPER) && this->osignoreservice.Find(u->nick)) return EVENT_STOP; |