1
0
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:
Adam
2010-11-27 00:04:13 -06:00
parent 2b10cc84ea
commit 71c433cc50
158 changed files with 1575 additions and 1615 deletions
+7 -8
View File
@@ -22,27 +22,26 @@ class CommandMSSend : public Command
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
{
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);
}
};