From: terencehill Date: Mon, 21 Nov 2016 16:50:55 +0000 (+0100) Subject: Fix #1834 "Server info doesn't timeout in LMS" X-Git-Tag: xonotic-v0.8.2~419 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c32f7f695d6d9044287c7a98bd6ef9c2e4088a52;p=xonotic%2Fxonotic-data.pk3dir.git Fix #1834 "Server info doesn't timeout in LMS" --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index f9c4662c3..fa34eab94 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1190,12 +1190,6 @@ void ClientConnect(entity this) if (IS_REAL_CLIENT(this)) { - if (!autocvar_g_campaign) - { - this.motd_actived_time = -1; - Send_Notification(NOTIF_ONE_ONLY, this, MSG_CENTER, CENTER_MOTD, getwelcomemessage(this)); - } - if (g_weaponarena_weapons == WEPSET(TUBA)) stuffcmd(this, "cl_cmd settemp chase_active 1\n"); } @@ -1222,6 +1216,15 @@ void ClientConnect(entity this) }); MUTATOR_CALLHOOK(ClientConnect, this); + + if (IS_REAL_CLIENT(this)) + { + if (!autocvar_g_campaign && !IS_PLAYER(this)) + { + this.motd_actived_time = -1; + Send_Notification(NOTIF_ONE_ONLY, this, MSG_CENTER, CENTER_MOTD, getwelcomemessage(this)); + } + } } /* =============