From 12486f6ceedf9b3f3ee90c72f4b61c1aef931656 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 9 Mar 2024 11:39:03 +0000 Subject: Tweak the config default limits slightly. --- modules/chanserv/chanserv.cpp | 2 +- modules/chanserv/cs_clone.cpp | 2 +- modules/chanserv/cs_flags.cpp | 2 +- modules/chanserv/cs_mode.cpp | 2 +- modules/chanserv/cs_xop.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/chanserv') diff --git a/modules/chanserv/chanserv.cpp b/modules/chanserv/chanserv.cpp index e00ecf05b..f04b69dab 100644 --- a/modules/chanserv/chanserv.cpp +++ b/modules/chanserv/chanserv.cpp @@ -52,7 +52,7 @@ public: * @param chan The channel */ ChanServTimer(Reference &cs, ExtensibleItem &i, Module *m, Channel *chan) - : Timer(m, Config->GetModule(m)->Get("inhabit", "15s")) + : Timer(m, Config->GetModule(m)->Get("inhabit", "1m")) , ChanServ(cs) , inhabit(i) , c(chan) diff --git a/modules/chanserv/cs_clone.cpp b/modules/chanserv/cs_clone.cpp index 3e4d9bc81..ec8096fe9 100644 --- a/modules/chanserv/cs_clone.cpp +++ b/modules/chanserv/cs_clone.cpp @@ -24,7 +24,7 @@ class CommandCSClone final static void CopyAccess(CommandSource &source, ChannelInfo *ci, ChannelInfo *target_ci) { std::set masks; - unsigned access_max = Config->GetModule("chanserv")->Get("accessmax", "1024"); + unsigned access_max = Config->GetModule("chanserv")->Get("accessmax", "1000"); unsigned count = 0; for (unsigned i = 0; i < target_ci->GetAccessCount(); ++i) diff --git a/modules/chanserv/cs_flags.cpp b/modules/chanserv/cs_flags.cpp index b1cb02edd..feb64aacd 100644 --- a/modules/chanserv/cs_flags.cpp +++ b/modules/chanserv/cs_flags.cpp @@ -175,7 +175,7 @@ class CommandCSFlags final } } - unsigned access_max = Config->GetModule("chanserv")->Get("accessmax", "1024"); + unsigned access_max = Config->GetModule("chanserv")->Get("accessmax", "1000"); if (access_max && ci->GetDeepAccessCount() >= access_max) { source.Reply(_("Sorry, you can only have %d access entries on a channel, including access entries from other channels."), access_max); diff --git a/modules/chanserv/cs_mode.cpp b/modules/chanserv/cs_mode.cpp index 631196c7a..8c7c7c1c3 100644 --- a/modules/chanserv/cs_mode.cpp +++ b/modules/chanserv/cs_mode.cpp @@ -336,7 +336,7 @@ class CommandCSMode final continue; } - if (modelocks->GetMLock().size() >= Config->GetModule(this->owner)->Get("max", "32")) + if (modelocks->GetMLock().size() >= Config->GetModule(this->owner)->Get("max", "50")) { source.Reply(_("The mode lock list of \002%s\002 is full."), ci->name.c_str()); continue; diff --git a/modules/chanserv/cs_xop.cpp b/modules/chanserv/cs_xop.cpp index 835768849..b47e1e988 100644 --- a/modules/chanserv/cs_xop.cpp +++ b/modules/chanserv/cs_xop.cpp @@ -208,7 +208,7 @@ private: } } - unsigned access_max = Config->GetModule("chanserv")->Get("accessmax", "1024"); + unsigned access_max = Config->GetModule("chanserv")->Get("accessmax", "1000"); if (access_max && ci->GetDeepAccessCount() >= access_max) { source.Reply(_("Sorry, you can only have %d access entries on a channel, including access entries from other channels."), access_max); -- cgit