diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-01-25 18:49:59 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-01-25 18:49:59 -0300 |
commit | 4faf13f5d01874f729ab7d0d9f3954f47d3de305 (patch) | |
tree | b4f6188c20544bd88505e20bc9f7e4cb2a69c88f /npc | |
parent | 2c62e615584913487803d1cb1acad9b1ec45151a (diff) | |
download | serverdata-4faf13f5d01874f729ab7d0d9f3954f47d3de305.tar.gz serverdata-4faf13f5d01874f729ab7d0d9f3954f47d3de305.tar.bz2 serverdata-4faf13f5d01874f729ab7d0d9f3954f47d3de305.tar.xz serverdata-4faf13f5d01874f729ab7d0d9f3954f47d3de305.zip |
Fix a possible exploit on clientversion
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/clientversion.txt | 10 |
1 files 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)); + } } |