diff options
author | mathieui <mathieui@mathieui.net> | 2012-12-30 19:43:07 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-12-30 19:43:07 +0100 |
commit | f1d2aa67d03be37fc82da36600a468cf75982ba9 (patch) | |
tree | 6a776f0c15b91cbc36186dfd4017d013b1ea4a1f | |
parent | d66cf8e1fedb89b0bc729369a5809c8ca5d2ccb5 (diff) | |
download | poezio-f1d2aa67d03be37fc82da36600a468cf75982ba9.tar.gz poezio-f1d2aa67d03be37fc82da36600a468cf75982ba9.tar.bz2 poezio-f1d2aa67d03be37fc82da36600a468cf75982ba9.tar.xz poezio-f1d2aa67d03be37fc82da36600a468cf75982ba9.zip |
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.
-rw-r--r-- | src/tabs.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |