# HG changeset patch # User Goffi # Date 1396278445 -7200 # Node ID 9393dc29aaf35d1a12ad6cc6e94e6993248bfe82 # Parent 2eb4fef29795c438844bc04cab963d1ca9570729 core (XMPP): added warning when a contact ins roster is not subscribed from or to diff -r 2eb4fef29795 -r 9393dc29aaf3 src/core/xmpp.py --- a/src/core/xmpp.py Mon Mar 31 16:57:02 2014 +0200 +++ b/src/core/xmpp.py Mon Mar 31 17:07:25 2014 +0200 @@ -218,6 +218,10 @@ self.removeItem(item.jid) return info(_("new contact in roster list: %s"), item.jid.full()) + if not item.subscriptionTo: + warning(_("Your a not subscribed to this contact !")) + if not item.subscriptionFrom: + warning(_("This contact is not subscribed from you !")) #self.host.memory.addContact(item.jid, item_attr, item.groups, self.parent.profile) bare_jid = item.jid.userhostJID()