diff options
| author | 2019-10-24 10:25:29 +0100 | |
|---|---|---|
| committer | 2019-10-24 15:56:20 +0100 | |
| commit | 2e75491aed528e63a3b1bcbe76483e395f8c2506 (patch) | |
| tree | 96bf5efb9c49bb7f9360f4697ada8e5ef1d51d65 /src/channels.cpp | |
| parent | Improve the timed ban notices (#1722). (diff) | |
Fix respecting the deprecated <channels:users> tag.
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index befc1f133..282199718 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -176,6 +176,8 @@ Channel* Channel::JoinUser(LocalUser* user, std::string cname, bool override, co if (!override) { unsigned int maxchans = user->GetClass()->maxchans; + if (!maxchans) + maxchans = ServerInstance->Config->MaxChans; if (user->IsOper()) { unsigned int opermaxchans = ConvToNum<unsigned int>(user->oper->getConfig("maxchans")); |
