1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 14:56:39 +02:00

moved some config options from example.conf to nickserv.example.conf

This commit is contained in:
DukePyrolator
2013-10-16 06:03:48 +02:00
parent 6cde65a57f
commit 2cfc97053f
10 changed files with 60 additions and 62 deletions
+4 -4
View File
@@ -133,7 +133,7 @@ class CommandNSSetPassword : public Command
source.Reply(MORE_OBSCURE_PASSWORD);
return;
}
else if (len > Config->GetBlock("options")->Get<unsigned>("passlen"))
else if (len > Config->GetModule("nickserv")->Get<unsigned>("passlen", "32"))
{
source.Reply(PASSWORD_TOO_LONG);
return;
@@ -196,7 +196,7 @@ class CommandNSSASetPassword : public Command
source.Reply(MORE_OBSCURE_PASSWORD);
return;
}
else if (len > Config->GetBlock("options")->Get<unsigned>("passlen"))
else if (len > Config->GetModule("nickserv")->Get<unsigned>("passlen", "32"))
{
source.Reply(PASSWORD_TOO_LONG);
return;
@@ -332,7 +332,7 @@ class CommandNSSetDisplay : public Command
const NickAlias *user_na = NickAlias::Find(user), *na = NickAlias::Find(param);
if (Config->GetBlock("options")->Get<bool>("nonicknameownership"))
if (Config->GetModule("nickserv")->Get<bool>("nonicknameownership"))
{
source.Reply(_("This command may not be used on this network because nickname ownership is disabled."));
return;
@@ -635,7 +635,7 @@ class CommandNSSetKill : public Command
return;
}
if (Config->GetBlock("options")->Get<bool>("nonicknameownership"))
if (Config->GetModule("nickserv")->Get<bool>("nonicknameownership"))
{
source.Reply(_("This command may not be used on this network because nickname ownership is disabled."));
return;