summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-20 02:21:32 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-20 02:21:32 +0000
commita7189482f5995d5c2acf0a89b9ccc6e678b0b65d (patch)
treec0bfe0e6e17b86ce79c621b5aa3a6987350a0b7a
parent26e09b3b7f9a272339b61ff32967933d765c209a (diff)
Show access denied if you do not have access to CS SUSPEND, patch from Adam.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2177 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/core/cs_suspend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/cs_suspend.c b/src/core/cs_suspend.c
index 6d6d9f1f9..18967eaca 100644
--- a/src/core/cs_suspend.c
+++ b/src/core/cs_suspend.c
@@ -33,7 +33,10 @@ class CommandCSSuspend : public Command
Channel *c;
if (!u->nc->HasCommand("chanserv/suspend"))
+ {
+ notice_lang(s_ChanServ, u, ACCESS_DENIED);
return MOD_CONT; // XXX: error?
+ }
/* Assumes that permission checking has already been done. */
if (ForceForbidReason && !reason)