mirror of
https://github.com/anope/anope.git
synced 2026-06-28 13:16:38 +02:00
Rewrote some of the opertype system, added os_login
This commit is contained in:
@@ -32,7 +32,7 @@ class CommandHSHelp : public Command
|
||||
User *u = source.u;
|
||||
source.Reply(_("%s commands"), Config->s_HostServ.c_str());
|
||||
for (CommandMap::const_iterator it = HostServ->Commands.begin(), it_end = HostServ->Commands.end(); it != it_end; ++it)
|
||||
if (!Config->HidePrivilegedCommands || it->second->permission.empty() || (u->Account() && u->Account()->HasCommand(it->second->permission)))
|
||||
if (!Config->HidePrivilegedCommands || it->second->permission.empty() || u->HasCommand(it->second->permission))
|
||||
it->second->OnServHelp(source);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user