summaryrefslogtreecommitdiff
path: root/src/tabs
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-12-19 22:19:37 +0100
committermathieui <mathieui@mathieui.net>2014-12-19 22:22:05 +0100
commitd932921be3ba64f886af2276067b4de6a68e0c04 (patch)
tree5f21d73d8f078e73443caf83963b130bea9b4182 /src/tabs
parentdb60b72cf1bdfb4fb6fe1abd5fbe1a1bfd9240a7 (diff)
downloadpoezio-d932921be3ba64f886af2276067b4de6a68e0c04.tar.gz
poezio-d932921be3ba64f886af2276067b4de6a68e0c04.tar.bz2
poezio-d932921be3ba64f886af2276067b4de6a68e0c04.tar.xz
poezio-d932921be3ba64f886af2276067b4de6a68e0c04.zip
Fix /last_activity (8/78)
Diffstat (limited to 'src/tabs')
-rw-r--r--src/tabs/conversationtab.py8
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