summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index b9b40929..96cc1454 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1755,8 +1755,9 @@ class Core(object):
room = room[1:]
current_status = self.get_status()
if tab and not tab.joined:
+ seconds = (int(time.time()) - tab.last_connection) if tab.last_connection != 0 else 0
muc.join_groupchat(self.xmpp, room, nick, password,
- histo_length, current_status.message, current_status.show)
+ histo_length, current_status.message, current_status.show, seconds=seconds)
if not tab:
self.open_new_room(room, nick)
muc.join_groupchat(self.xmpp, room, nick, password,