diff options
author | mathieui <mathieui@mathieui.net> | 2012-11-17 19:17:02 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-11-17 19:17:02 +0100 |
commit | ac806cbb4149cd3684b9b297667876a5dd84dc52 (patch) | |
tree | 530983e222bff6fb1354798d539e118cc2466352 /src/core.py | |
parent | 6781f67e80aa5ec86c84b49ef4526dcef9feceda (diff) | |
download | poezio-ac806cbb4149cd3684b9b297667876a5dd84dc52.tar.gz poezio-ac806cbb4149cd3684b9b297667876a5dd84dc52.tar.bz2 poezio-ac806cbb4149cd3684b9b297667876a5dd84dc52.tar.xz poezio-ac806cbb4149cd3684b9b297667876a5dd84dc52.zip |
Fix the history numbers when re-joining a room
the <history/> element had a xmlns="" instead of the proper namespace.
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py index 6636a5d6..74b12d0c 100644 --- a/src/core.py +++ b/src/core.py @@ -1682,7 +1682,8 @@ class Core(object): if histo_length is not None: histo_length= str(histo_length) if tab and not tab.joined: - seconds = (int(time.time()) - tab.last_connection) if tab.last_connection != 0 else 0 + seconds = (datetime.now() - tab.last_connection).total_seconds() if tab.last_connection is not None else 0 + seconds = int(seconds) muc.join_groupchat(self.xmpp, room, nick, password, histo_length, current_status.message, current_status.show, seconds=seconds) if not tab: |