From 63805e59f6765917bbc03637362711c2d0157376 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 29 Feb 2012 20:31:46 +0100 Subject: Fixes #2327 (used "seconds" instead) --- src/tabs.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tabs.py') diff --git a/src/tabs.py b/src/tabs.py index 2f384e22..ebf490f3 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -33,6 +33,7 @@ import xhtml import weakref import timed_events import os +import time import multiuserchat as muc @@ -584,6 +585,7 @@ class MucTab(ChatTab): self.info_header = windows.MucInfoWin() self.input = windows.MessageInput() self.ignores = [] # set of Users + self.last_connection = 0 # keys self.key_func['^I'] = self.completion self.key_func['M-u'] = self.scroll_user_list_down @@ -1354,6 +1356,7 @@ class MucTab(ChatTab): Set the state of the room as not joined, so we can know if we can join it, send messages to it, etc """ + self.last_connection = int(time.time()) self.users = [] if self is not self.core.current_tab(): self.state = 'disconnected' -- cgit v1.2.3