From 10a918f9e1cffdad805c12a2f9d70c2892f5b871 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 10 Aug 2013 12:33:27 -0400 Subject: Default some listmax config settings to 50 --- modules/commands/cs_list.cpp | 2 +- modules/commands/hs_list.cpp | 2 +- modules/commands/ns_list.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/commands/cs_list.cpp b/modules/commands/cs_list.cpp index a92729b61..00dc0d8a5 100644 --- a/modules/commands/cs_list.cpp +++ b/modules/commands/cs_list.cpp @@ -66,7 +66,7 @@ class CommandCSList : public Command } Anope::string spattern = "#" + pattern; - unsigned listmax = Config->GetModule(this->owner)->Get("listmax"); + unsigned listmax = Config->GetModule(this->owner)->Get("listmax", "50"); source.Reply(_("List of entries matching \002%s\002:"), pattern.c_str()); diff --git a/modules/commands/hs_list.cpp b/modules/commands/hs_list.cpp index aa712008f..2eec6d17c 100644 --- a/modules/commands/hs_list.cpp +++ b/modules/commands/hs_list.cpp @@ -53,7 +53,7 @@ class CommandHSList : public Command } } - unsigned display_counter = 0, listmax = Config->GetModule(this->owner)->Get("listmax"); + unsigned display_counter = 0, listmax = Config->GetModule(this->owner)->Get("listmax", "50"); ListFormatter list; list.AddColumn("Number").AddColumn("Nick").AddColumn("Vhost").AddColumn("Creator").AddColumn("Created"); diff --git a/modules/commands/ns_list.cpp b/modules/commands/ns_list.cpp index b1ab19971..31f2cbb51 100644 --- a/modules/commands/ns_list.cpp +++ b/modules/commands/ns_list.cpp @@ -29,7 +29,7 @@ class CommandNSList : public Command bool is_servadmin = source.HasCommand("nickserv/list"); int count = 0, from = 0, to = 0; bool suspended, nsnoexpire, unconfirmed; - unsigned listmax = Config->GetModule(this->owner)->Get("listmax"); + unsigned listmax = Config->GetModule(this->owner)->Get("listmax", "50"); suspended = nsnoexpire = unconfirmed = false; -- cgit