summaryrefslogtreecommitdiff
path: root/src/core/cs_status.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_status.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_status.c')
-rw-r--r--src/core/cs_status.c3
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;