From c0c859210e5b3583a93db9d9f3408e956c3cf58f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 9 May 2021 04:35:22 -0300 Subject: Fix infinite restart typo --- npc/commands/super-menu.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'npc/commands/super-menu.txt') diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt index bf3923c92..ba01743b3 100644 --- a/npc/commands/super-menu.txt +++ b/npc/commands/super-menu.txt @@ -219,8 +219,10 @@ function script SchedRestart { if ($SCHED_RESTART == 1) $SCHED_RESTART=gettimetick(2)+900; - if ($SCHED_RESTART > gettimetick(2)) + if ($SCHED_RESTART > gettimetick(2)) { + $SCHED_RESTART=0; atcommand("@serverexit 101"); + } kamibroadcast("A restart has been scheduled to about %s.", FuzzyTime($SCHED_RESTART)); } -- cgit v1.2.3-60-g2f50