From 28190fc82a9aefba5edfba7ddcef34a878775311 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 10 Jul 2013 13:38:00 +0100 Subject: [PATCH] Change the default for to an empty string. RFC 1459 says this field is for comments about the version. If the operator has no comments then we should not show any. --- docs/conf/inspircd.conf.example | 4 ++-- src/configreader.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/conf/inspircd.conf.example b/docs/conf/inspircd.conf.example index b34710d89..60527ce75 100644 --- a/docs/conf/inspircd.conf.example +++ b/docs/conf/inspircd.conf.example @@ -729,8 +729,8 @@ # (Commands like /notice, /privmsg, /kick, etc) maxtargets="20" - # customversion: Displays a custom string when a user /version's - # the ircd. This may be set for security reasons or vanity reasons. + # customversion: A custom message to be displayed in the comments field + # of the VERSION command response. This does not hide the InspIRCd version. customversion="" # operspywhois: show opers (users/auspex) the +s channels a user is in. Values: diff --git a/src/configreader.cpp b/src/configreader.cpp index 8e5a1c2a9..005b156ed 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -399,7 +399,7 @@ void ServerConfig::Fill() DisabledCommands = ConfValue("disabled")->getString("commands", ""); DisabledDontExist = ConfValue("disabled")->getBool("fakenonexistant"); UserStats = security->getString("userstats"); - CustomVersion = security->getString("customversion", Network + " IRCd"); + CustomVersion = security->getString("customversion"); HideSplits = security->getBool("hidesplits"); HideBans = security->getBool("hidebans"); HideWhoisServer = security->getString("hidewhois"); -- 2.39.5