summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-03 17:59:55 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-03 17:59:55 -0300
commitb9326b7281fa74b5ddde275524ebde9d480906af (patch)
treed5042bccab4c0ce6a20b41e17c01cbcca46c3f17 /npc
parentc4a88ca29df4b086dcd74fe0d4a76597d57299c8 (diff)
downloadserverdata-b9326b7281fa74b5ddde275524ebde9d480906af.tar.gz
serverdata-b9326b7281fa74b5ddde275524ebde9d480906af.tar.bz2
serverdata-b9326b7281fa74b5ddde275524ebde9d480906af.tar.xz
serverdata-b9326b7281fa74b5ddde275524ebde9d480906af.zip
Regex fix
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/clientversion.txt20
1 files changed, 18 insertions, 2 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index d04ecd346..f77e54c36 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -541,7 +541,7 @@ function script clientupdater {
} // if ranking
}
// Negative Karma = good. And positive karma allows PvP. So...
- // sex ago 9 18:10:20 -03 201
+ // sex ago 9 18:10:20 -03 2019
if (UPDATE < 1565385020) {
UPDATE=1565385020;
// PVP bugfix
@@ -616,7 +616,23 @@ function script clientupdater {
if (strcharinfo(0) == "seeds") {
getitembound LegendaryMouboo, 1, 1;
}
-
+ }
+ // Old regex messed things up
+ // All updates in August are invalid
+ // inv ali d --:--:-- +-- ----
+ if (UPDATE < 1567295999 && UPDATE > 1564617600 && UPDATE != 1565385020) {
+ UPDATE=1565039378;
+ mesn "Narrator";
+ mesc l("Warning."), 1;
+ mesc l("Warning."), 1;
+ mesc l("Warning: Invalid UNIX EPOCH time detected."), 1;
+ next;
+ mesc l("We'll be correcting this bug automatically now.");
+ mesc l("YOU WILL BE DISCONNECTED BY FORCE."), 1;
+ mesc l("Please login right after, and this error should not happen again.");
+ next;
+ // Force user to disconnect
+ atcommand "@kick "+strcharinfo(0);
}