From d932921be3ba64f886af2276067b4de6a68e0c04 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 19 Dec 2014 22:19:37 +0100 Subject: Fix /last_activity (8/78) --- src/tabs/conversationtab.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3