summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-25 18:49:59 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-25 18:49:59 -0300
commit4faf13f5d01874f729ab7d0d9f3954f47d3de305 (patch)
treeb4f6188c20544bd88505e20bc9f7e4cb2a69c88f /npc
parent2c62e615584913487803d1cb1acad9b1ec45151a (diff)
downloadserverdata-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.txt10
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));
+ }
}