summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-02-29 20:31:46 +0100
committermathieui <mathieui@mathieui.net>2012-02-29 20:31:46 +0100
commit63805e59f6765917bbc03637362711c2d0157376 (patch)
tree98a1d03049933eec85f214f2b5580c947585a6a0 /src/tabs.py
parent73c8206cc7926757ccc963ede581989078e6c780 (diff)
downloadpoezio-63805e59f6765917bbc03637362711c2d0157376.tar.gz
poezio-63805e59f6765917bbc03637362711c2d0157376.tar.bz2
poezio-63805e59f6765917bbc03637362711c2d0157376.tar.xz
poezio-63805e59f6765917bbc03637362711c2d0157376.zip
Fixes #2327 (used "seconds" instead)
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py3
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'