diff options
author | mathieui <mathieui@mathieui.net> | 2012-07-17 21:56:04 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-07-17 21:56:04 +0200 |
commit | 8317b845d810353daab07a467199f411c3fceaa4 (patch) | |
tree | c727d43b7cb2deac2a6dd2e28444e08374b8dd54 /src/tabs.py | |
parent | 93228356597df66ebcb38f3f4fb8fbc07f198cec (diff) | |
download | poezio-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.py | 5 |
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): |