summaryrefslogtreecommitdiff
path: root/modules/core/ns_help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ns_help.cpp')
-rw-r--r--modules/core/ns_help.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/ns_help.cpp b/modules/core/ns_help.cpp
index bb16f5594..94442606e 100644
--- a/modules/core/ns_help.cpp
+++ b/modules/core/ns_help.cpp
@@ -38,9 +38,9 @@ class CommandNSHelp : public Command
"\002%R%s HELP \037command\037\002."), NickServ->nick.c_str(), NickServ->nick.c_str(),
NickServ->nick.c_str());
for (CommandMap::const_iterator it = NickServ->Commands.begin(), it_end = NickServ->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);
- if (u->Account() && u->Account()->IsServicesOper())
+ if (u->IsServicesOper())
source.Reply(_(" \n"
"Services Operators can also drop any nickname without needing\n"
"to identify for the nick, and may view the access list for\n"