rename flood.max_time -> flood.duration

This commit is contained in:
Your Name
2021-04-26 03:32:05 +02:00
parent be1c6fbb4e
commit 3ab7d9c04d
2 changed files with 3 additions and 3 deletions

View File

@@ -58,8 +58,8 @@ def flood(sock):
ticks = time.time()
sent_ping = False
while True:
if config.flood.max_time > 0:
if (time.time() - ticks) > config.flood.max_time: break
if config.flood.duration > 0:
if (time.time() - ticks) > config.flood.duration: break
recv = sock.recvline()
print(recv.strip())
if not len(recv): break