summaryrefslogtreecommitdiff
path: root/modules/chanserv
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-27 13:21:55 +0100
committerSadie Powell <sadie@witchery.services>2025-05-27 13:21:55 +0100
commit7b2f0f579016f2d8cc8c919704cf1f75d74558db (patch)
tree5bfa89030ffc2a9c23929b52171814c9a380e59a /modules/chanserv
parent23e72fc934eae5a5fadde21102ec342840956c1f (diff)
Fix some trivial wrong types when getting config values.
Diffstat (limited to 'modules/chanserv')
-rw-r--r--modules/chanserv/chanserv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/chanserv/chanserv.cpp b/modules/chanserv/chanserv.cpp
index 259a92842..1fdded2d0 100644
--- a/modules/chanserv/chanserv.cpp
+++ b/modules/chanserv/chanserv.cpp
@@ -154,7 +154,7 @@ public:
{
std::deque<ChannelInfo *> chans;
nc->GetChannelReferences(chans);
- int max_reg = Config->GetModule(this).Get<int>("maxregistered");
+ auto max_reg = Config->GetModule(this).Get<uint16_t>("maxregistered");
for (auto *ci : chans)
{