summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-25 18:09:07 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-25 18:09:07 -0300
commit56f7332c3118ec7b421c679bf691fe8b935de65d (patch)
treefff51a8d546e5b7014b341bafa884530eed68ac1 /npc
parentf4160fe2c93d65c334726fa248635d33ed73dfe1 (diff)
downloadserverdata-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.txt4
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");