summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-12-30 19:43:07 +0100
committermathieui <mathieui@mathieui.net>2012-12-30 19:43:07 +0100
commitf1d2aa67d03be37fc82da36600a468cf75982ba9 (patch)
tree6a776f0c15b91cbc36186dfd4017d013b1ea4a1f /src/tabs.py
parentd66cf8e1fedb89b0bc729369a5809c8ca5d2ccb5 (diff)
downloadpoezio-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.
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py4
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