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_getkey.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_getkey.c')
-rw-r--r-- | src/core/cs_getkey.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/cs_getkey.c b/src/core/cs_getkey.c index 1957d49cd..7518fa791 100644 --- a/src/core/cs_getkey.c +++ b/src/core/cs_getkey.c @@ -38,6 +38,12 @@ class CommandCSGetKey : public Command const char *chan = params[0].c_str(); ChannelInfo *ci; + if (!u->nc->HasCommand("chanserv/getkey")) + { + notice_lang(s_ChanServ, u, ACCESS_DENIED); + return MOD_CONT; + } + if (!(ci = cs_findchan(chan))) { notice_lang(s_ChanServ, u, CHAN_X_NOT_REGISTERED, chan); |