aboutsummaryrefslogtreecommitdiffstats
path: root/src/channels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp4
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