From f1d2aa67d03be37fc82da36600a468cf75982ba9 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 30 Dec 2012 19:43:07 +0100 Subject: Fix #2158 Fix /accept for transports. I think there are more people who use transports than people who have \2f into a legitimate JID. So I believe this is ok. --- src/tabs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tabs.py b/src/tabs.py index 954f3b25..1bdeb2ed 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -2493,6 +2493,10 @@ class RosterInfoTab(Tab): return else: jid = safeJID(arg).bare + nodepart = jid.user + # crappy transports putting resources inside the node part + if '\\2f' in nodepart: + jid.user = nodepart.split('\\2f')[0] contact = roster[jid] if contact is None: return -- cgit v1.2.3