summaryrefslogtreecommitdiff
path: root/src/core/cs_getpass.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-05-05 22:26:41 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-05-05 22:26:41 +0000
commitdc102049b0e91c5aa730f067c26e33f3e138386d (patch)
treeb8b4b04d3996becc48e67b6fc1f0a87fdb5ce6f7 /src/core/cs_getpass.c
parent845b15ddd99d5b6fde905045595e9d70f7a1c6f2 (diff)
Adds check for opertype permissions to mod_run_cmd() in commands.c, and adds optional parameter to Command class constructor that takes the opertype permissions for the command.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2292 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_getpass.c')
-rw-r--r--src/core/cs_getpass.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/cs_getpass.c b/src/core/cs_getpass.c
index 5d43d7244..74f7e87d6 100644
--- a/src/core/cs_getpass.c
+++ b/src/core/cs_getpass.c
@@ -18,7 +18,7 @@
class CommandCSGetPass : public Command
{
public:
- CommandCSGetPass() : Command("GETPASS", 1, 1)
+ CommandCSGetPass() : Command("GETPASS", 1, 1, "chanserv/getpass")
{
this->SetFlag(CFLAG_ALLOW_SUSPENDED);
}
@@ -29,12 +29,6 @@ class CommandCSGetPass : public Command
char tmp_pass[PASSMAX];
ChannelInfo *ci;
- if (!u->nc->HasCommand("chanserv/getpass"))
- {
- 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);