summaryrefslogtreecommitdiff
path: root/npc/commands/ucp.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-23 12:28:36 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-23 12:28:36 -0300
commitea26ff655ad848d73c715a8c4cbbaf730613d90a (patch)
tree38c8f72b6bd6bc5cc22149ac14760bdf954c716b /npc/commands/ucp.txt
parenta0f62d1c9b2072064392f418313244a427002e95 (diff)
downloadserverdata-ea26ff655ad848d73c715a8c4cbbaf730613d90a.tar.gz
serverdata-ea26ff655ad848d73c715a8c4cbbaf730613d90a.tar.bz2
serverdata-ea26ff655ad848d73c715a8c4cbbaf730613d90a.tar.xz
serverdata-ea26ff655ad848d73c715a8c4cbbaf730613d90a.zip
[skip ci] UCP: Less SQL querying
Diffstat (limited to 'npc/commands/ucp.txt')
-rw-r--r--npc/commands/ucp.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt
index c855a8721..2a6006b70 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -34,7 +34,7 @@ function script UserCtrlPanel {
case 3:
if (!validatepin())
break;
- if (!@lgc) {
+ if (!@lgc || @query) {
query_sql("SELECT email,logincount,last_ip FROM `login` WHERE account_id="+getcharid(3)+" LIMIT 2", .@email$, .@lgc, .@ip$);
@email$=.@email$;
@lgc=.@lgc;