From 72b1ade332a9fa82c9ffca696b5fa4841d181346 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 16 Jan 2022 22:05:49 +0000 Subject: Fix the opermaxchans check, properly this time. --- src/channels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index ce24db9b1..9eceadf64 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -186,7 +186,7 @@ Channel* Channel::JoinUser(LocalUser* user, std::string cname, bool override, co // If not set, use 2.0's , if that's not set either, use limit from CC if (!opermaxchans && user->HasPrivPermission("channels/high-join-limit")) opermaxchans = ServerInstance->Config->OperMaxChans; - if (opermaxchans < maxchans) + if (opermaxchans > maxchans) maxchans = opermaxchans; } if (user->chans.size() >= maxchans) -- cgit v1.3.1-10-gc9f91