core (XMPP): added warning when a contact ins roster is not subscribed from or to
This commit is contained in:
parent
a8d12fb6de
commit
0fa3105b23
1 changed files with 4 additions and 0 deletions
|
|
@ -218,6 +218,10 @@ class SatRosterProtocol(xmppim.RosterClientProtocol):
|
|||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue