From 8315d5250d4d338e1880ea81f327645fe62d9bfb Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 27 Nov 2020 12:36:44 +0000 Subject: Rename ChanMax to MaxChannel for consistency with the other limits. --- src/channels.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/channels.cpp') 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 -- cgit v1.3.1-10-gc9f91