summaryrefslogtreecommitdiff
path: root/npc/commands/ucp.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/ucp.txt')
-rw-r--r--npc/commands/ucp.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt
index 8372502cf..a11d2e0c5 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -20,8 +20,15 @@ function script UserCtrlPanel {
case 1: GameRules; break;
case 2: GameNews; break;
case 3:
+ if (@query) {
+ mesn;
+ mesc l("Anti flood protection is enabled. Request rejected."), 1;
+ next;
+ break;
+ }
if (!validatepin())
break;
+ @query=1;
query_sql("SELECT email,logincount,last_ip FROM `login` WHERE account_id="+getcharid(3)+"' LIMIT 2", .@email$, .@lgc, .@ip$);
mes l("Char Name: @@", strcharinfo(0));
mes l("Party Name: @@", strcharinfo(1));