1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 13:16:38 +02:00

Allow grouping commands to make help output easier to comprehend

This commit is contained in:
Adam
2013-01-13 22:05:30 -05:00
parent 29a018088e
commit da6543d17b
10 changed files with 265 additions and 100 deletions
+2 -1
View File
@@ -251,12 +251,13 @@ void BotInfo::OnMessage(User *u, const Anope::string &message)
RunCommand(source, message);
}
void BotInfo::SetCommand(const Anope::string &cname, const Anope::string &sname, const Anope::string &permission)
CommandInfo& BotInfo::SetCommand(const Anope::string &cname, const Anope::string &sname, const Anope::string &permission)
{
CommandInfo ci;
ci.name = sname;
ci.permission = permission;
this->commands[cname] = ci;
return this->commands[cname];
}
CommandInfo *BotInfo::GetCommand(const Anope::string &cname)