comparison 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
comparison
equal deleted inserted replaced
957:2eb4fef29795 958:9393dc29aaf3
216 # if there is no presence subscription 216 # if there is no presence subscription
217 # may change in the future 217 # may change in the future
218 self.removeItem(item.jid) 218 self.removeItem(item.jid)
219 return 219 return
220 info(_("new contact in roster list: %s"), item.jid.full()) 220 info(_("new contact in roster list: %s"), item.jid.full())
221 if not item.subscriptionTo:
222 warning(_("Your a not subscribed to this contact !"))
223 if not item.subscriptionFrom:
224 warning(_("This contact is not subscribed from you !"))
221 #self.host.memory.addContact(item.jid, item_attr, item.groups, self.parent.profile) 225 #self.host.memory.addContact(item.jid, item_attr, item.groups, self.parent.profile)
222 226
223 bare_jid = item.jid.userhostJID() 227 bare_jid = item.jid.userhostJID()
224 self._jids[bare_jid] = item 228 self._jids[bare_jid] = item
225 for group in item.groups: 229 for group in item.groups: