mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 22:17:17 +02:00
Fix idle timeouts.
The fix for rate limiting removed the code which updated cmd_last, which is used to determine whether someone is idle.
This commit is contained in:
parent
b4cc24e655
commit
a7db340d82
1 changed files with 4 additions and 1 deletions
|
|
@ -208,12 +208,15 @@ class ServerSession(Session):
|
|||
idle timers and command counters.
|
||||
|
||||
"""
|
||||
# Idle time used for timeout calcs.
|
||||
self.cmd_last = time()
|
||||
|
||||
# Store the timestamp of the user's last command.
|
||||
if not idle:
|
||||
# Increment the user's command counter.
|
||||
self.cmd_total += 1
|
||||
# Player-visible idle time, not used in idle timeout calcs.
|
||||
self.cmd_last_visible = time()
|
||||
self.cmd_last_visible = self.cmd_last
|
||||
|
||||
def data_in(self, text=None, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue