aboutsummaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-16 22:05:49 +0000
committerGravatar Sadie Powell2022-01-16 22:06:55 +0000
commit72b1ade332a9fa82c9ffca696b5fa4841d181346 (patch)
treeb97e6d1c6e3cbeddeccb95514ab0ff7999503180 /src/channels.cpp
parentFix updating connect classes when <connect:{allow, deny}> is set. (diff)
Fix the opermaxchans check, properly this time.
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
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 <channels:opers>, 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)