mirror of
https://github.com/anope/anope.git
synced 2026-06-29 07:36:39 +02:00
Use C++11's explicit override feature if available
This commit is contained in:
@@ -25,7 +25,7 @@ class CommandNSResetPass : public Command
|
||||
this->SetSyntax(_("\037nickname\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;
|
||||
NickAlias *na;
|
||||
@@ -46,7 +46,7 @@ class CommandNSResetPass : 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(" ");
|
||||
@@ -79,7 +79,7 @@ class NSResetPass : public Module
|
||||
ModuleManager::Attach(I_OnPreCommand, this);
|
||||
}
|
||||
|
||||
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 (command->name == "nickserv/confirm" && params.size() > 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user