From 4faf13f5d01874f729ab7d0d9f3954f47d3de305 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 25 Jan 2020 18:49:59 -0300 Subject: Fix a possible exploit on clientversion --- npc/functions/clientversion.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index f62f47ae2..e1c98a41f 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -743,10 +743,12 @@ function script clientupdater { // sáb jan 25 18:30:00 BRT 2020 if (UPDATE < 1579987800) { UPDATE=1579987800; - #REG_DATE=gettimetick(2); // 1520046000 : sáb mar 3 00:00:00 BRT 2018 - // A thank-you for being with us for almost 2 years - getitem StrangeCoin, 1; - dispbottom l("Thank you for being with us for so long. You gained a %s as a random good-hearted action from the team!", getitemlink(StrangeCoin)); + if (!#REG_DATE) { + #REG_DATE=gettimetick(2); // 1520046000 : sáb mar 3 00:00:00 BRT 2018 + // A thank-you for being with us for almost 2 years + getitem StrangeCoin, 1; + dispbottom l("Thank you for being with us for so long. You gained a %s as a random good-hearted action from the team!", getitemlink(StrangeCoin)); + } } -- cgit v1.2.3-60-g2f50