From ea26ff655ad848d73c715a8c4cbbaf730613d90a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 23 Jun 2020 12:28:36 -0300 Subject: [skip ci] UCP: Less SQL querying --- npc/commands/ucp.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc') 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; -- cgit v1.2.3-70-g09d2