1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 19:03:13 +02:00

The rest of the earlier command changes

This commit is contained in:
Adam
2010-11-27 00:04:13 -06:00
parent 2b10cc84ea
commit 71c433cc50
158 changed files with 1575 additions and 1615 deletions
+11 -12
View File
@@ -162,7 +162,7 @@ class CommandOSSNLine : public Command
if (param.empty())
{
this->OnSyntaxError(u, "ADD");
this->OnSyntaxError(source, "ADD");
return MOD_CONT;
}
@@ -172,7 +172,7 @@ class CommandOSSNLine : public Command
if (rest.find(':') == Anope::string::npos)
{
this->OnSyntaxError(u, "ADD");
this->OnSyntaxError(source, "ADD");
return MOD_CONT;
}
@@ -247,7 +247,7 @@ class CommandOSSNLine : public Command
}
else
this->OnSyntaxError(u, "ADD");
this->OnSyntaxError(source, "ADD");
return MOD_CONT;
}
@@ -266,7 +266,7 @@ class CommandOSSNLine : public Command
if (mask.empty())
{
this->OnSyntaxError(u, "DEL");
this->OnSyntaxError(source, "DEL");
return MOD_CONT;
}
@@ -399,7 +399,6 @@ class CommandOSSNLine : public Command
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
{
User *u = source.u;
const Anope::string &cmd = params[0];
if (cmd.equals_ci("ADD"))
@@ -413,25 +412,25 @@ class CommandOSSNLine : public Command
else if (cmd.equals_ci("CLEAR"))
return this->OnClear(source);
else
this->OnSyntaxError(u, "");
this->OnSyntaxError(source, "");
return MOD_CONT;
}
bool OnHelp(User *u, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
{
u->SendMessage(OperServ, OPER_HELP_SNLINE);
source.Reply(OPER_HELP_SNLINE);
return true;
}
void OnSyntaxError(User *u, const Anope::string &subcommand)
void OnSyntaxError(CommandSource &source, const Anope::string &subcommand)
{
SyntaxError(OperServ, u, "SNLINE", OPER_SNLINE_SYNTAX);
SyntaxError(source, "SNLINE", OPER_SNLINE_SYNTAX);
}
void OnServHelp(User *u)
void OnServHelp(CommandSource &source)
{
u->SendMessage(OperServ, OPER_HELP_CMD_SNLINE);
source.Reply(OPER_HELP_CMD_SNLINE);
}
};