diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-09-14 17:07:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-14 17:07:53 +0200 |
commit | 42888e2907dacb829e2a29effbee83efb5bef6ec (patch) | |
tree | d772f4b53af4604acb0ab2d9fa11187fc78eefe5 | |
parent | 49b665809ca66c26dbe1161e8b04dcff407a3d73 (diff) | |
parent | 7b7b11b5edcdf4b191770d2ff5a86d3240acf5e0 (diff) |
Merge pull request #1220 from SaberUK/master+isupport
Improve the default ISUPPORT tokens.
-rw-r--r-- | src/server.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server.cpp b/src/server.cpp index 932be319e..2feb08f96 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -165,13 +165,13 @@ void ISupportManager::Build() tokens["AWAYLEN"] = ConvToStr(ServerInstance->Config->Limits.MaxAway); tokens["CASEMAPPING"] = "rfc1459"; + tokens["CHANLIMIT"] = InspIRCd::Format("#:%u", ServerInstance->Config->MaxChans); tokens["CHANMODES"] = ServerInstance->Modes->GiveModeList(MODETYPE_CHANNEL); tokens["CHANNELLEN"] = ConvToStr(ServerInstance->Config->Limits.ChanMax); tokens["CHANTYPES"] = "#"; tokens["ELIST"] = "MU"; tokens["KICKLEN"] = ConvToStr(ServerInstance->Config->Limits.MaxKick); tokens["MAXBANS"] = "64"; // TODO: make this a config setting. - tokens["MAXCHANNELS"] = ConvToStr(ServerInstance->Config->MaxChans); tokens["MAXTARGETS"] = ConvToStr(ServerInstance->Config->MaxTargets); tokens["MODES"] = ConvToStr(ServerInstance->Config->Limits.MaxModes); tokens["NETWORK"] = ServerInstance->Config->Network; @@ -179,8 +179,7 @@ void ISupportManager::Build() tokens["PREFIX"] = ServerInstance->Modes->BuildPrefixes(); tokens["STATUSMSG"] = ServerInstance->Modes->BuildPrefixes(false); tokens["TOPICLEN"] = ConvToStr(ServerInstance->Config->Limits.MaxTopic); - - tokens["FNC"] = tokens["VBANLIST"]; + tokens["VBANLIST"]; // Modules can add new tokens and also edit or remove existing tokens FOREACH_MOD(On005Numeric, (tokens)); |