summaryrefslogtreecommitdiff
path: root/src/core/cs_getpass.c
diff options
context:
space:
mode:
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);