Reformatted code base using black.
This commit is contained in:
parent
56319cbad3
commit
53fdaa9d09
1 changed files with 12604 additions and 8966 deletions
|
|
@ -75,7 +75,9 @@ class XEP_0280(object):
|
|||
log.info(_("Plugin XEP_0280 initialization"))
|
||||
self.host = host
|
||||
host.memory.update_params(self.params)
|
||||
host.trigger.add("message_received", self.message_received_trigger, priority=200000)
|
||||
host.trigger.add(
|
||||
"message_received", self.message_received_trigger, priority=200000
|
||||
)
|
||||
|
||||
def get_handler(self, client):
|
||||
return XEP_0280_handler()
|
||||
|
|
@ -159,9 +161,7 @@ class XEP_0280(object):
|
|||
pass
|
||||
else:
|
||||
log.warning(
|
||||
"invalid message carbons received:\n{xml}".format(
|
||||
xml=message_elt.toXml()
|
||||
)
|
||||
"invalid message carbons received:\n{xml}".format(xml=message_elt.toXml())
|
||||
)
|
||||
return False
|
||||
|
||||
|
|
@ -171,6 +171,7 @@ class XEP_0280(object):
|
|||
|
||||
return True
|
||||
|
||||
|
||||
@implementer(iwokkel.IDisco)
|
||||
class XEP_0280_handler(XMPPHandler):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue