summaryrefslogtreecommitdiff
path: root/src/core/ns_help.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-02 22:59:27 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-02 22:59:27 +0000
commit48ef6617acff38cdce32233d447c4317b61ab048 (patch)
treec13b67f905da74fe8c4f446ef6cc43aa2039fb60 /src/core/ns_help.c
parentef400fa6dc98f8be74a37725beb3ef67405d458c (diff)
Remove capability for commands to hook existing commands, add an OnPreCommand event instead. Tidies up a lot of stuff. Also remove a bunch of dead code.
NOTE: This will break some stuff. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2241 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/ns_help.c')
-rw-r--r--src/core/ns_help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ns_help.c b/src/core/ns_help.c
index 061293824..5c2b164cd 100644
--- a/src/core/ns_help.c
+++ b/src/core/ns_help.c
@@ -44,7 +44,7 @@ class CommandNSHelp : public Command
{
notice_help(s_NickServ, u, NICK_HELP);
moduleDisplayHelp(1, u);
- if (is_services_admin(u))
+ if (u->nc && u->nc->IsServicesOper())
notice_help(s_NickServ, u, NICK_SERVADMIN_HELP);
if (NSExpire >= 86400)
notice_help(s_NickServ, u, NICK_HELP_EXPIRES, NSExpire / 86400);