diff options
Diffstat (limited to 'npc/functions/clientversion.txt')
-rw-r--r-- | npc/functions/clientversion.txt | 20 |
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); } |