Mercurial > libervia-backend
comparison src/core/xmpp.py @ 1431:70abe871eac3
core (xmpp): added log message when a an entity without presence subscription is removed from roster
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 27 May 2015 19:12:38 +0200 |
parents | 1e833970b7f0 |
children | b06047e1c1fb |
comparison
equal
deleted
inserted
replaced
1430:ba09cd879343 | 1431:70abe871eac3 |
---|---|
186 for item in roster.itervalues(): | 186 for item in roster.itervalues(): |
187 if not item.subscriptionTo and not item.subscriptionFrom and not item.ask: | 187 if not item.subscriptionTo and not item.subscriptionFrom and not item.ask: |
188 #XXX: current behaviour: we don't want contact in our roster list | 188 #XXX: current behaviour: we don't want contact in our roster list |
189 # if there is no presence subscription | 189 # if there is no presence subscription |
190 # may change in the future | 190 # may change in the future |
191 log.info(u"Removing contact {} from roster because there is no presence subscription".format(item.jid)) | |
191 self.removeItem(item.entity) # FIXME: to be checked | 192 self.removeItem(item.entity) # FIXME: to be checked |
192 else: | 193 else: |
193 self._registerItem(item) | 194 self._registerItem(item) |
194 | 195 |
195 def _registerItem(self, item): | 196 def _registerItem(self, item): |