]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Display server hostname in welcome message and info
authorGary Moon <gary@garymoon.net>
Mon, 18 May 2020 09:47:06 +0000 (09:47 +0000)
committerMario <mario.mario@y7mail.com>
Mon, 18 May 2020 09:47:06 +0000 (09:47 +0000)
qcsrc/server/client.qc

index 1ded3b3d44a3f792864310dbb21159c766687eb0..c42288c6fd801e0261d0506f11507dcaf72ffef1 100644 (file)
@@ -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");