From 2cfc97053faba7582cd57701900de78ebacb12ce Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Wed, 16 Oct 2013 06:03:48 +0200 Subject: moved some config options from example.conf to nickserv.example.conf --- modules/commands/ns_set.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/commands/ns_set.cpp') diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp index 770951b8e..a1e37e15e 100644 --- a/modules/commands/ns_set.cpp +++ b/modules/commands/ns_set.cpp @@ -133,7 +133,7 @@ class CommandNSSetPassword : public Command source.Reply(MORE_OBSCURE_PASSWORD); return; } - else if (len > Config->GetBlock("options")->Get("passlen")) + else if (len > Config->GetModule("nickserv")->Get("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("passlen")) + else if (len > Config->GetModule("nickserv")->Get("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("nonicknameownership")) + if (Config->GetModule("nickserv")->Get("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("nonicknameownership")) + if (Config->GetModule("nickserv")->Get("nonicknameownership")) { source.Reply(_("This command may not be used on this network because nickname ownership is disabled.")); return; -- cgit