diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-03 02:42:06 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-03 02:42:06 +0000 |
commit | 6d97b7f8f9599f1825e3b0e4b07d421bc3db2c06 (patch) | |
tree | 57735af404345dd9a4fbb1742be4d775e175f34d /src/core/cs_getpass.c | |
parent | c6ef1e0390abe38404742d2355145d6f671ca2dc (diff) |
Fix bug #1045, patch from Adam, suspended channels can no longer be administered, and control over checking forbidden and suspended channels has been moved out of the modules and into the core.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2243 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_getpass.c')
-rw-r--r-- | src/core/cs_getpass.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/cs_getpass.c b/src/core/cs_getpass.c index 687f7cf7d..130f6217b 100644 --- a/src/core/cs_getpass.c +++ b/src/core/cs_getpass.c @@ -29,6 +29,7 @@ class CommandCSGetPass : public Command public: CommandCSGetPass() : Command("GETPASS", 1, 1) { + this->SetFlag(CFLAG_ALLOW_SUSPENDED); } CommandReturn Execute(User *u, std::vector<std::string> ¶ms) @@ -48,11 +49,6 @@ class CommandCSGetPass : public Command notice_lang(s_ChanServ, u, CHAN_X_NOT_REGISTERED, chan); return MOD_CONT; } - if (ci->flags & CI_FORBIDDEN) - { - notice_lang(s_ChanServ, u, CHAN_X_FORBIDDEN, chan); - return MOD_CONT; - } if (!enc_decrypt(ci->founderpass, tmp_pass, PASSMAX - 1)) { notice_lang(s_ChanServ, u, CHAN_GETPASS_UNAVAILABLE); |