mirror of
https://github.com/anope/anope.git
synced 2026-06-27 06:26:37 +02:00
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
This commit is contained in:
@@ -872,12 +872,6 @@ chanserv
|
||||
*/
|
||||
listmax = 50
|
||||
|
||||
/*
|
||||
* If set, Services will only allow Services Root(s) to use the ChanServ GETPASS command on a
|
||||
* channel. This directive is optional.
|
||||
*/
|
||||
#restrictgetpass = yes
|
||||
|
||||
/*
|
||||
* Allow only IRC Operators to use ChanServ. This directive is optional.
|
||||
*/
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user