diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-28 00:50:04 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-28 00:50:04 +0000 |
commit | a07fd592cba683025a07187e07e31e1d55fcd199 (patch) | |
tree | d61c9eefb4e91edc2a661949bfb326e95ebb3ce9 /src | |
parent | bd7f4f8c4995ddc81d5c5ab9cb32ed05048908c2 (diff) |
Remove CSRestrictGetPass, it is unneeded with the introduction of opertypes. [Adam]
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2136 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 2 | ||||
-rw-r--r-- | src/core/cs_getpass.c | 5 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/config.c b/src/config.c index 60847e116..ebfefd807 100644 --- a/src/config.c +++ b/src/config.c @@ -133,7 +133,6 @@ char *CSAutokickReason; time_t CSInhabit; bool CSListOpersOnly; unsigned CSListMax; -bool CSRestrictGetPass; bool CSOpersOnly; unsigned MSMaxMemos; @@ -871,7 +870,6 @@ int ServerConfig::Read(bool bail) {"chanserv", "inhabit", "0", new ValueContainerTime(&CSInhabit), DT_TIME, ValidateNotZero}, {"chanserv", "listopersonly", "no", new ValueContainerBool(&CSListOpersOnly), DT_BOOLEAN, NoValidation}, {"chanserv", "listmax", "0", new ValueContainerUInt(&CSListMax), DT_UINTEGER, ValidateNotZero}, - {"chanserv", "restrictgetpass", "no", new ValueContainerBool(&CSRestrictGetPass), DT_BOOLEAN, NoValidation}, {"chanserv", "opersonly", "no", new ValueContainerBool(&CSOpersOnly), DT_BOOLEAN, NoValidation}, {"memoserv", "nick", "MemoServ", new ValueContainerChar(&s_MemoServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, {"memoserv", "description", "Memo Service", new ValueContainerChar(&desc_MemoServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, diff --git a/src/core/cs_getpass.c b/src/core/cs_getpass.c index 689342223..c26d4a349 100644 --- a/src/core/cs_getpass.c +++ b/src/core/cs_getpass.c @@ -55,11 +55,6 @@ class CommandCSGetPass : public Command notice_lang(s_ChanServ, u, CHAN_X_FORBIDDEN, chan); return MOD_CONT; } - if (CSRestrictGetPass && !is_services_root(u)) - { - notice_lang(s_ChanServ, u, PERMISSION_DENIED); - return MOD_CONT; - } if(!enc_decrypt(ci->founderpass, tmp_pass, PASSMAX - 1)==1) { notice_lang(s_ChanServ, u, CHAN_GETPASS_UNAVAILABLE); |