]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Rename the REALLEN 005 token to NAMELEN.
authorSadie Powell <sadie@witchery.services>
Wed, 30 Sep 2020 19:21:14 +0000 (20:21 +0100)
committerSadie Powell <sadie@witchery.services>
Wed, 30 Sep 2020 19:21:14 +0000 (20:21 +0100)
Turns out this is already required by the IRCv3 setname spec but
we forgot to implement it. Oops.

src/server.cpp

index 40c9f38b267291f49f40e8d2ebf6062905747532..a7cb971c193d104dc7616e5328e0135f9d18225b 100644 (file)
@@ -201,10 +201,10 @@ void ISupportManager::Build()
        tokens["LINELEN"] = ConvToStr(ServerInstance->Config->Limits.MaxLine);
        tokens["MAXTARGETS"] = ConvToStr(ServerInstance->Config->MaxTargets);
        tokens["MODES"] = ConvToStr(ServerInstance->Config->Limits.MaxModes);
+       tokens["NAMELEN"] = ConvToStr(ServerInstance->Config->Limits.MaxReal);
        tokens["NETWORK"] = ServerInstance->Config->Network;
        tokens["NICKLEN"] = ConvToStr(ServerInstance->Config->Limits.NickMax);
        tokens["PREFIX"] = ServerInstance->Modes->BuildPrefixes();
-       tokens["REALLEN"] = ConvToStr(ServerInstance->Config->Limits.MaxReal);
        tokens["STATUSMSG"] = ServerInstance->Modes->BuildPrefixes(false);
        tokens["TOPICLEN"] = ConvToStr(ServerInstance->Config->Limits.MaxTopic);
        tokens["USERLEN"] = ConvToStr(ServerInstance->Config->Limits.IdentMax);