mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Fix using the oper channel limit even if it is lower than the general limit.
This commit is contained in:
parent
b52983b268
commit
3f184e79d4
@ -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)
|
||||
if (opermaxchans < maxchans)
|
||||
maxchans = opermaxchans;
|
||||
}
|
||||
if (user->chans.size() >= maxchans)
|
||||
|
Loading…
x
Reference in New Issue
Block a user