From b9326b7281fa74b5ddde275524ebde9d480906af Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 3 Sep 2019 17:59:55 -0300 Subject: Regex fix --- npc/functions/clientversion.txt | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'npc') 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); } -- cgit v1.2.3-60-g2f50