From: Mario Date: Mon, 18 May 2020 09:47:06 +0000 (+0000) Subject: Merge branch 'garymoon/show-server-name-in-info' into 'master' X-Git-Tag: xonotic-v0.8.5~1068 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=002be87cfe10ccbfedaf09eec48a1c78b10f8476;hp=d611f37d63254ae205c5e125e90f93e86de3e524 Merge branch 'garymoon/show-server-name-in-info' into 'master' Display server hostname in welcome message and info See merge request xonotic/xonotic-data.pk3dir!797 --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index e60c2ab637..b4947635f3 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1042,7 +1042,9 @@ string getwelcomemessage(entity this) modifications = substring(modifications, 2, strlen(modifications) - 2); string versionmessage = GetClientVersionMessage(this); - string s = strcat(versionmessage, "^8\n^8\nmatch type is ^1", gamemode_name, "^8\n"); + string s = strcat(versionmessage, "^8\n^8\nhost is ^9", autocvar_hostname, "^8\n"); + + s = strcat(s, "^8\nmatch type is ^1", gamemode_name, "^8\n"); if(modifications != "") s = strcat(s, "^8\nactive modifications: ^3", modifications, "^8\n");