summaryrefslogtreecommitdiff
path: root/src/core/cs_suspend.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-28 00:48:36 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-28 00:48:36 +0000
commit090107db5f2afa16e155f56d7928e38d0a17a295 (patch)
tree396c2d0fd726a40aecd3d866f1a8cfdc0bc54732 /src/core/cs_suspend.c
parentf2fb7ef53f1082f5c194f56f80592111051f1f76 (diff)
Add access checking to cs_* modules. Also change number of arguments for cs_modes commands.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2134 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_suspend.c')
-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 45292821f..6d6d9f1f9 100644
--- a/src/core/cs_suspend.c
+++ b/src/core/cs_suspend.c
@@ -32,6 +32,9 @@ class CommandCSSuspend : public Command
Channel *c;
+ if (!u->nc->HasCommand("chanserv/suspend"))
+ return MOD_CONT; // XXX: error?
+
/* Assumes that permission checking has already been done. */
if (ForceForbidReason && !reason)
{