diff options
author | mathieui <mathieui@mathieui.net> | 2014-12-19 22:19:37 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-12-19 22:22:05 +0100 |
commit | d932921be3ba64f886af2276067b4de6a68e0c04 (patch) | |
tree | 5f21d73d8f078e73443caf83963b130bea9b4182 | |
parent | db60b72cf1bdfb4fb6fe1abd5fbe1a1bfd9240a7 (diff) | |
download | poezio-d932921be3ba64f886af2276067b4de6a68e0c04.tar.gz poezio-d932921be3ba64f886af2276067b4de6a68e0c04.tar.bz2 poezio-d932921be3ba64f886af2276067b4de6a68e0c04.tar.xz poezio-d932921be3ba64f886af2276067b4de6a68e0c04.zip |
Fix /last_activity (8/78)
-rw-r--r-- | src/tabs/conversationtab.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tabs/conversationtab.py b/src/tabs/conversationtab.py index f4c10301..f9c0f07c 100644 --- a/src/tabs/conversationtab.py +++ b/src/tabs/conversationtab.py @@ -154,10 +154,10 @@ class ConversationTab(OneToOneTab): @command_args_parser.quoted(0, 1) def command_last_activity(self, args): """ - /activity [jid] + /last_activity [jid] """ - if args is not None: - return self.core.command_last_activity(arg[0]) + if args and args[0]: + return self.core.command_last_activity(args[0]) def callback(iq): if iq['type'] != 'result': @@ -184,7 +184,7 @@ class ConversationTab(OneToOneTab): self.add_message(msg) self.core.refresh_window() - self.core.xmpp.plugin['xep_0012'].get_last_activity(self.general_jid, callback=callback) + self.core.xmpp.plugin['xep_0012'].get_last_activity(self.get_dest_jid(), callback=callback) @refresh_wrapper.conditional @command_args_parser.ignored |