mirror of
https://github.com/anope/anope.git
synced 2026-07-10 19:23:13 +02:00
Use C++11's explicit override feature if available
This commit is contained in:
@@ -22,7 +22,7 @@ class CommandHSSet : public Command
|
||||
this->SetSyntax(_("\037nick\037 \037hostmask\037"));
|
||||
}
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) anope_override
|
||||
{
|
||||
User *u = source.u;
|
||||
|
||||
@@ -90,7 +90,7 @@ class CommandHSSet : public Command
|
||||
source.Reply(_("VHost for \002%s\002 set to \002%s\002."), nick.c_str(), host.c_str());
|
||||
}
|
||||
|
||||
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
|
||||
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
|
||||
{
|
||||
this->SendSyntax(source);
|
||||
source.Reply(" ");
|
||||
@@ -123,7 +123,7 @@ class CommandHSSetAll : public Command
|
||||
this->SetSyntax(_("\037nick\037 \037hostmask>\037"));
|
||||
}
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) anope_override
|
||||
{
|
||||
User *u = source.u;
|
||||
|
||||
@@ -192,7 +192,7 @@ class CommandHSSetAll : public Command
|
||||
source.Reply(_("VHost for group \002%s\002 set to \002%s\002."), nick.c_str(), host.c_str());
|
||||
}
|
||||
|
||||
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
|
||||
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
|
||||
{
|
||||
this->SendSyntax(source);
|
||||
source.Reply(" ");
|
||||
|
||||
Reference in New Issue
Block a user