diff options
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 3 |
1 files changed, 3 insertions, 0 deletions
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' |