core (disco): added missing disco extensions when generating the cap hash.

This commit is contained in:
Goffi 2019-03-01 19:28:11 +01:00
commit 8ae596600d

View file

@ -165,9 +165,10 @@ class XEP_0115_handler(XMPPHandler):
if c_hash != "sha-1": # unknown hash method
log.warning(
_(
u"Unknown hash method for entity capabilities: [%(hash_method)s] (entity: %(jid)s, node: %(node)s)"
u"Unknown hash method for entity capabilities: [{hash_method}] "
u"(entity: {entity_jid}, node: {node})"
)
% {"hash_method": c_hash, "jid": from_jid, "node": c_node}
.format(hash_method = c_hash, entity_jid = from_jid, node = c_node)
)
def cb(__):
@ -177,14 +178,16 @@ class XEP_0115_handler(XMPPHandler):
if computed_hash != c_ver:
log.warning(
_(
u"Computed hash differ from given hash:\ngiven: [%(given_hash)s]\ncomputed: [%(computed_hash)s]\n(entity: %(jid)s, node: %(node)s)"
u"Computed hash differ from given hash:\n"
u"given: [{given}]\n"
u"computed: [{computed}]\n"
u"(entity: {entity_jid}, node: {node})"
).format(
given = c_ver,
computed = computed_hash,
entity_jid = from_jid,
node = c_node,
)
% {
"given_hash": c_ver,
"computed_hash": computed_hash,
"jid": from_jid,
"node": c_node,
}
)
def eb(failure):