Mercurial > libervia-backend
diff src/core/xmpp.py @ 958:9393dc29aaf3
core (XMPP): added warning when a contact ins roster is not subscribed from or to
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 31 Mar 2014 17:07:25 +0200 |
parents | 4a577b170809 |
children | 56e328733952 |
line wrap: on
line diff
--- 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()