From a7db340d82c905588426832871f69adbc4b68cc6 Mon Sep 17 00:00:00 2001 From: Ahmed Charles Date: Sat, 17 Oct 2015 23:33:33 +0000 Subject: [PATCH] Fix idle timeouts. The fix for rate limiting removed the code which updated cmd_last, which is used to determine whether someone is idle. --- evennia/server/serversession.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/evennia/server/serversession.py b/evennia/server/serversession.py index d56b68e565..492e582568 100644 --- a/evennia/server/serversession.py +++ b/evennia/server/serversession.py @@ -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): """