From 56f7332c3118ec7b421c679bf691fe8b935de65d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 25 Mar 2021 18:09:07 -0300 Subject: If you somehow set a pincode in a weird way, politely refuse it. The only accepted pincodes are those with email confirmation. --- npc/functions/main.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 282da5cde..e0b1c2ac7 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -396,6 +396,10 @@ function script gf_charid { // Request pincode and validate it. Use any non-4-digits code to cancel. Failure will dc you. // Returns 1 if pin check is OK. function script validatepin { + if (#FIRST_TIME < 2) { + mesc l("ERROR: You must set a PinCode to make use of this function."), 1; + return 0; + } mesc l("Please insert your pincode."), 1; mesc l("WARNING: If you insert wrong pincode, you'll be disconnected."); mesc l("Use @@ to cancel.", "##B-1##b"); -- cgit v1.2.3-60-g2f50