diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-28 00:48:36 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-28 00:48:36 +0000 |
commit | 090107db5f2afa16e155f56d7928e38d0a17a295 (patch) | |
tree | 396c2d0fd726a40aecd3d866f1a8cfdc0bc54732 /src/core/cs_suspend.c | |
parent | f2fb7ef53f1082f5c194f56f80592111051f1f76 (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.c | 3 |
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) { |