summaryrefslogtreecommitdiff
path: root/modules/core/os_help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/os_help.cpp')
-rw-r--r--modules/core/os_help.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/os_help.cpp b/modules/core/os_help.cpp
index f455b9079..e58eee435 100644
--- a/modules/core/os_help.cpp
+++ b/modules/core/os_help.cpp
@@ -31,7 +31,7 @@ class CommandOSHelp : public Command
User *u = source.u;
source.Reply(_("%s commands:"), OperServ->nick.c_str());
for (CommandMap::const_iterator it = OperServ->Commands.begin(), it_end = OperServ->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);
source.Reply(_("\002Notice:\002 All commands sent to %s are logged!"), OperServ->nick.c_str());
}