summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/commands/ucp.txt2
-rw-r--r--npc/functions/main.txt2
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 {