Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0115.py @ 978:218149ea1a35
plugin XEP-0115: minor logs improvment
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 07 Apr 2014 16:22:18 +0200 |
parents | b280cf4cdf25 |
children | 301b342c697a |
comparison
equal
deleted
inserted
replaced
977:d2e612a45e76 | 978:218149ea1a35 |
---|---|
143 warning(_('Received invalid capabilities tag')) | 143 warning(_('Received invalid capabilities tag')) |
144 return | 144 return |
145 | 145 |
146 if c_ver in self.host.memory.disco.hashes: | 146 if c_ver in self.host.memory.disco.hashes: |
147 # we already know the hash, we update the jid entity | 147 # we already know the hash, we update the jid entity |
148 debug ("hash [%s] already in cache, updating entity" % c_ver) | 148 debug ("hash [%(hash)s] already in cache, updating entity [%(jid)s]" % {'hash': c_ver, 'jid': from_jid.full()}) |
149 self.host.memory.updateEntityData(from_jid, C.ENTITY_CAP_HASH, c_ver, self.profile) | 149 self.host.memory.updateEntityData(from_jid, C.ENTITY_CAP_HASH, c_ver, self.profile) |
150 return | 150 return |
151 | 151 |
152 yield self.host.getDiscoInfos(from_jid, self.profile) | 152 yield self.host.getDiscoInfos(from_jid, self.profile) |
153 if c_hash != 'sha-1': | 153 if c_hash != 'sha-1': |