mirror of
https://github.com/anope/anope.git
synced 2026-06-28 23:06:39 +02:00
The rest of the earlier command changes
This commit is contained in:
@@ -22,27 +22,26 @@ class CommandMSSend : public Command
|
||||
|
||||
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
User *u = source.u;
|
||||
const Anope::string &nick = params[0];
|
||||
const Anope::string &text = params[1];
|
||||
memo_send(u, nick, text, 0);
|
||||
memo_send(source, nick, text, 0);
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
bool OnHelp(User *u, const Anope::string &subcommand)
|
||||
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
|
||||
{
|
||||
u->SendMessage(MemoServ, MEMO_HELP_SEND);
|
||||
source.Reply(MEMO_HELP_SEND);
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnSyntaxError(User *u, const Anope::string &subcommand)
|
||||
void OnSyntaxError(CommandSource &source, const Anope::string &subcommand)
|
||||
{
|
||||
SyntaxError(MemoServ, u, "SEND", MEMO_SEND_SYNTAX);
|
||||
SyntaxError(source, "SEND", MEMO_SEND_SYNTAX);
|
||||
}
|
||||
|
||||
void OnServHelp(User *u)
|
||||
void OnServHelp(CommandSource &source)
|
||||
{
|
||||
u->SendMessage(MemoServ, MEMO_HELP_CMD_SEND);
|
||||
source.Reply(MEMO_HELP_CMD_SEND);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user