1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 07:13:12 +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
+6 -7
View File
@@ -22,8 +22,7 @@ class CommandOSStaff : public Command
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
{
User *u = source.u;
u->SendMessage(OperServ, OPER_STAFF_LIST_HEADER);
source.Reply(OPER_STAFF_LIST_HEADER);
for (std::list<std::pair<Anope::string, Anope::string> >::iterator it = Config->Opers.begin(), it_end = Config->Opers.end(); it != it_end; ++it)
{
@@ -52,19 +51,19 @@ class CommandOSStaff : public Command
}
}
u->SendMessage(OperServ, END_OF_ANY_LIST, "Staff");
source.Reply(END_OF_ANY_LIST, "Staff");
return MOD_CONT;
}
bool OnHelp(User *u, const Anope::string &subcommand)
bool OnHelp(CommandSource &source, const Anope::string &subcommand)
{
u->SendMessage(OperServ, OPER_HELP_STAFF);
source.Reply(OPER_HELP_STAFF);
return true;
}
void OnServHelp(User *u)
void OnServHelp(CommandSource &source)
{
u->SendMessage(OperServ, OPER_HELP_CMD_STAFF);
source.Reply(OPER_HELP_CMD_STAFF);
}
};