]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
sv_maxidle: Improve CHATCON messages MOVETOSPEC_IDLING and QUIT_KICK_IDLING and QUIT_...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index b5bdc30755590520f54ec218700ebb9b2e0b9df2..d752eea3690680cbb2e8f31a7a73864a8aa49dbc 100644 (file)
@@ -2740,14 +2740,14 @@ void PlayerPostThink (entity this)
                        if (timeleft <= 0) {
                                if (IS_PLAYER(this) && autocvar_sv_maxidle_playertospectator > 0)
                                {
-                                       Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_MOVETOSPEC_IDLING, this.netname);
+                                       Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_MOVETOSPEC_IDLING, this.netname, maxidle_time);
                                        if (this.caplayer)
                                                this.caplayer = 0;
                                        PutObserverInServer(this);
                                }
                                else
                                {
-                                       Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_QUIT_KICK_IDLING, this.netname);
+                                       Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_QUIT_KICK_IDLING, this.netname, maxidle_time);
                                        dropclient(this);
                                }
                                return;