]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 f9c4662c366f11c5a7be7829e2e92ede2958c0e3..fa34eab94eb75d28e2702be7465a6dbebea0a7fe 100644 (file)
@@ -1190,12 +1190,6 @@ void ClientConnect(entity this)
 
        if (IS_REAL_CLIENT(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");
        }
                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);
        });
 
        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));
+               }
+       }
 }
 /*
 =============
 }
 /*
 =============