Fix #1834 "Server info doesn't timeout in LMS"
authorterencehill <piuntn@gmail.com>
Mon, 21 Nov 2016 16:50:55 +0000 (17:50 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 21 Nov 2016 16:50:55 +0000 (17:50 +0100)
qcsrc/server/client.qc

index f9c4662..fa34eab 100644 (file)
@@ -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));
+               }
+       }
 }
 /*
 =============