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:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user