From 5ba208651f878003e17ac7fbb72fd5183e9e9b33 Mon Sep 17 00:00:00 2001 From: Gary Moon Date: Mon, 18 May 2020 09:47:06 +0000 Subject: [PATCH] Display server hostname in welcome message and info --- qcsrc/server/client.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); -- 2.39.2