summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-07-17 21:56:04 +0200
committermathieui <mathieui@mathieui.net>2012-07-17 21:56:04 +0200
commit8317b845d810353daab07a467199f411c3fceaa4 (patch)
treec727d43b7cb2deac2a6dd2e28444e08374b8dd54 /src/tabs.py
parent93228356597df66ebcb38f3f4fb8fbc07f198cec (diff)
downloadpoezio-8317b845d810353daab07a467199f411c3fceaa4.tar.gz
poezio-8317b845d810353daab07a467199f411c3fceaa4.tar.bz2
poezio-8317b845d810353daab07a467199f411c3fceaa4.tar.xz
poezio-8317b845d810353daab07a467199f411c3fceaa4.zip
Fix /version to find a fulljid when available
And improve the completion in the roster (go to the resources)
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index dfa5f529..33a7126b 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2577,6 +2577,11 @@ class ConversationTab(ChatTab):
if arg:
return self.core.command_version(arg)
jid = self.name
+ jid = JID(jid)
+ if not jid.resource:
+ if jid in roster:
+ resource = roster[jid].get_highest_priority_resource()
+ jid = resource.jid if resource else jid
self.core.xmpp.plugin['xep_0092'].get_version(jid, callback=callback)
def resize(self):