diff options
| author | 2020-11-27 12:36:44 +0000 | |
|---|---|---|
| committer | 2020-11-27 12:36:44 +0000 | |
| commit | 8315d5250d4d338e1880ea81f327645fe62d9bfb (patch) | |
| tree | 9f5cf59bc7127f431a15790ebfb461bbd80b00ba /src/channels.cpp | |
| parent | Rename NickMax to MaxNick for consistency with the other limits. (diff) | |
Rename ChanMax to MaxChannel for consistency with the other limits.
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 8507c2e6a..151bc62ba 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -193,8 +193,8 @@ Channel* Channel::JoinUser(LocalUser* user, std::string cname, bool override, co } // Crop channel name if it's too long - if (cname.length() > ServerInstance->Config->Limits.ChanMax) - cname.resize(ServerInstance->Config->Limits.ChanMax); + if (cname.length() > ServerInstance->Config->Limits.MaxChannel) + cname.resize(ServerInstance->Config->Limits.MaxChannel); Channel* chan = ServerInstance->FindChan(cname); bool created_by_local = (chan == NULL); // Flag that will be passed to modules in the OnUserJoin() hook later |
