From b9896a33355f07228e7b546423e89b1e237c3ad5 Mon Sep 17 00:00:00 2001 From: z411 Date: Wed, 21 Apr 2021 20:02:17 -0400 Subject: [PATCH] Defaulting to normal hostname if hostname_full is not set --- qcsrc/server/client.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2