From 464ec7cb66f541ba5ddb37f77e567c5fda4b76cd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 28 Jul 2018 22:23:20 -0300 Subject: Try to fix strange bug --- npc/commands/ucp.txt | 2 +- npc/functions/main.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt index f632d8a1e..31dbafd79 100644 --- a/npc/commands/ucp.txt +++ b/npc/commands/ucp.txt @@ -22,7 +22,7 @@ function script UserCtrlPanel { case 3: if (!validatepin()) break; - if (!@email$) { + if (!@lgc) { query_sql("SELECT email,logincount,last_ip FROM `login` WHERE account_id="+getcharid(3)+"' LIMIT 2", .@email$, .@lgc, .@ip$); @email$=.@email$; @lgc=.@lgc; diff --git a/npc/functions/main.txt b/npc/functions/main.txt index d290bac63..0e4abb29c 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -272,7 +272,7 @@ function script validatepin { } mesc l("Thanks, @@. We just wanted to be sure it was you.", .@value$[0]); mes ""; - return 1; + return TRUE; } function script getquestlink { -- cgit v1.2.3-70-g09d2