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/protocol/inspircd12.cpp | |
| parent | 41e8d276023e8fefc22fb89c2f81ae17b8222155 (diff) | |
Use C++11's explicit override feature if available
Diffstat (limited to 'modules/protocol/inspircd12.cpp')
| -rw-r--r-- | modules/protocol/inspircd12.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp index 8fd29c7e8..e2ec39ebe 100644 --- a/modules/protocol/inspircd12.cpp +++ b/modules/protocol/inspircd12.cpp @@ -268,7 +268,7 @@ class InspIRCdExtBan : public ChannelModeList public: InspIRCdExtBan(ChannelModeName mName, char modeChar) : ChannelModeList(mName, modeChar) { } - bool Matches(User *u, const Entry *e) + bool Matches(User *u, const Entry *e) anope_override { const Anope::string &mask = e->mask; @@ -330,7 +330,7 @@ class Inspircd12IRCdMessage : public InspircdIRCdMessage * 8+: modes and params -- IMPORTANT, some modes (e.g. +s) may have parameters. So don't assume a fixed position of realname! * last: realname */ - bool OnUID(const Anope::string &source, const std::vector<Anope::string> ¶ms) + bool OnUID(const Anope::string &source, const std::vector<Anope::string> ¶ms) anope_override { time_t ts = convertTo<time_t>(params[1]); @@ -344,7 +344,7 @@ class Inspircd12IRCdMessage : public InspircdIRCdMessage return true; } - bool OnCapab(const Anope::string &source, const std::vector<Anope::string> ¶ms) + bool OnCapab(const Anope::string &source, const std::vector<Anope::string> ¶ms) anope_override { if (params[0].equals_cs("START")) { @@ -733,7 +733,7 @@ class ProtoInspIRCd : public Module } - void OnUserNickChange(User *u, const Anope::string &) + void OnUserNickChange(User *u, const Anope::string &) anope_override { /* InspIRCd 1.2 doesn't set -r on nick change, remove -r here. Note that if we have to set +r later * this will cancel out this -r, resulting in no mode changes. @@ -741,7 +741,7 @@ class ProtoInspIRCd : public Module u->RemoveMode(findbot(Config->NickServ), UMODE_REGISTERED); } - void OnServerSync(Server *s) + void OnServerSync(Server *s) anope_override { if (nickserv) for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it) |
