From 8ad5dec778e0626b27766dd9ae6f3dd011452e49 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 6 Apr 2006 15:46:57 +0000 Subject: [PATCH] don't add / at the end of agent if no resource. Fixes #1813 --- src/roster_window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 529ec92ae..d4e6c0a80 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1065,8 +1065,8 @@ class RosterWindow: def remove(widget, contact, account): self.dialog.destroy() - gajim.connections[account].unsubscribe_agent(contact.jid + '/' \ - + contact.resource) + full_jid = contact.get_full_jid() + gajim.connections[account].unsubscribe_agent(full_jid) # remove transport from treeview self.remove_contact(contact, account) # remove transport's contacts from treeview