summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/cs_list.cpp2
-rw-r--r--modules/commands/hs_list.cpp2
-rw-r--r--modules/commands/ns_list.cpp2
3 files changed, 3 insertions, 3 deletions
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<unsigned>("listmax");
+ unsigned listmax = Config->GetModule(this->owner)->Get<unsigned>("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<unsigned>("listmax");
+ unsigned display_counter = 0, listmax = Config->GetModule(this->owner)->Get<unsigned>("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<unsigned>("listmax");
+ unsigned listmax = Config->GetModule(this->owner)->Get<unsigned>("listmax", "50");
suspended = nsnoexpire = unconfirmed = false;