From: z411 Date: Thu, 22 Apr 2021 00:02:17 +0000 (-0400) Subject: Defaulting to normal hostname if hostname_full is not set X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b9896a33355f07228e7b546423e89b1e237c3ad5;p=xonotic%2Fxonotic-data.pk3dir.git Defaulting to normal hostname if hostname_full is not set --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 63a9ed6f9..d24007729 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -896,7 +896,7 @@ void ClientInit_misc(entity this) WriteCoord(channel, autocvar_g_trueaim_minrange); // z411 send full hostname - WriteString(channel, autocvar_hostname_full); + WriteString(channel, (autocvar_hostname_full != "" ? autocvar_hostname_full : autocvar_hostname)); WriteString(channel, autocvar_sv_motd_permanent); } @@ -1086,7 +1086,7 @@ string getwelcomemessage(entity this) //string versionmessage = GetClientVersionMessage(this); //string s = strcat(versionmessage, "^8\n^9", (autocvar_hostname_full ? autocvar_hostname_full : autocvar_hostname)); - string s = (autocvar_hostname_full ? autocvar_hostname_full : autocvar_hostname); + string s = (autocvar_hostname_full != "" ? autocvar_hostname_full : autocvar_hostname); s = strcat(s, "^8\n^7", gamemode_name);