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_status.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_status.c')
-rw-r--r-- | src/core/cs_status.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/cs_status.c b/src/core/cs_status.c index ba7f5f8fe..90a3728c8 100644 --- a/src/core/cs_status.c +++ b/src/core/cs_status.c @@ -32,6 +32,9 @@ class CommandCSStatus : public Command const char *nick = params[1].c_str(); const char *temp = NULL; + if (!u->nc->HasCommand("chanserv/status")) + return MOD_CONT; // XXX: error? + if (!(ci = cs_findchan(chan))) { temp = chan; |