summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-15 23:40:49 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-15 23:40:49 -0200
commit2a8037f06cfb534176b51df66db48ec04a899fc8 (patch)
tree2ea46cdf24b213a1aaf31dd902b92aed8905bfa1
parent21980db64b59824e7506c83df6e6bc98de8ed8a1 (diff)
downloadserverdata-2a8037f06cfb534176b51df66db48ec04a899fc8.tar.gz
serverdata-2a8037f06cfb534176b51df66db48ec04a899fc8.tar.bz2
serverdata-2a8037f06cfb534176b51df66db48ec04a899fc8.tar.xz
serverdata-2a8037f06cfb534176b51df66db48ec04a899fc8.zip
resync anti-flood should protect from idle spambots too
-rw-r--r--npc/commands/resync.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/commands/resync.txt b/npc/commands/resync.txt
index 1a1dfb121..53a406061 100644
--- a/npc/commands/resync.txt
+++ b/npc/commands/resync.txt
@@ -15,7 +15,7 @@ OnCall:
dispbottom l("Impossible to resync: You are dead.");
end;
}
- if (@rsync_delay > gettimetick(2) && readparam(Hp) < readparam(MaxHp)) {
+ if (@rsync_delay > gettimetick(2)) {
dispbottom l("Not resync'ing to prevent flood.");
end;
}