diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-03-25 18:09:07 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-03-25 18:09:07 -0300 |
commit | 56f7332c3118ec7b421c679bf691fe8b935de65d (patch) | |
tree | fff51a8d546e5b7014b341bafa884530eed68ac1 /npc | |
parent | f4160fe2c93d65c334726fa248635d33ed73dfe1 (diff) | |
download | serverdata-56f7332c3118ec7b421c679bf691fe8b935de65d.tar.gz serverdata-56f7332c3118ec7b421c679bf691fe8b935de65d.tar.bz2 serverdata-56f7332c3118ec7b421c679bf691fe8b935de65d.tar.xz serverdata-56f7332c3118ec7b421c679bf691fe8b935de65d.zip |
If you somehow set a pincode in a weird way, politely refuse it.
The only accepted pincodes are those with email confirmation.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/main.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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"); |