summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-23 12:28:55 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-23 12:28:55 -0300
commite854197f23ce2a0d818e1935ea1246d0e48e4327 (patch)
tree09d2fc97832d7d4b199f6afc58bcdd38b23fcddc /npc
parentea26ff655ad848d73c715a8c4cbbaf730613d90a (diff)
downloadserverdata-e854197f23ce2a0d818e1935ea1246d0e48e4327.tar.gz
serverdata-e854197f23ce2a0d818e1935ea1246d0e48e4327.tar.bz2
serverdata-e854197f23ce2a0d818e1935ea1246d0e48e4327.tar.xz
serverdata-e854197f23ce2a0d818e1935ea1246d0e48e4327.zip
[skip CI] UCP: Query with more appropriate limit, queries are... slow.
Diffstat (limited to 'npc')
-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 2a6006b70..37ab26376 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -35,7 +35,7 @@ function script UserCtrlPanel {
if (!validatepin())
break;
if (!@lgc || @query) {
- query_sql("SELECT email,logincount,last_ip FROM `login` WHERE account_id="+getcharid(3)+" LIMIT 2", .@email$, .@lgc, .@ip$);
+ query_sql("SELECT email,logincount,last_ip FROM `login` WHERE account_id="+getcharid(3)+" LIMIT 1", .@email$, .@lgc, .@ip$);
@email$=.@email$;
@lgc=.@lgc;
@ip$=.@ip$;