From: Gary Moon Date: Mon, 18 May 2020 09:47:06 +0000 (+0000) Subject: Display server hostname in welcome message and info X-Git-Tag: xonotic-v0.8.5~1068^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5ba208651f878003e17ac7fbb72fd5183e9e9b33;p=xonotic%2Fxonotic-data.pk3dir.git Display server hostname in welcome message and info --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 1ded3b3d4..c42288c6f 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");