From e854197f23ce2a0d818e1935ea1246d0e48e4327 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 23 Jun 2020 12:28:55 -0300 Subject: [skip CI] UCP: Query with more appropriate limit, queries are... slow. --- npc/commands/ucp.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/commands/ucp.txt') 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$; -- cgit v1.2.3-60-g2f50