plugin XEP-0033: formatting.
This commit is contained in:
parent
03f8421e84
commit
bf0515378a
1 changed files with 2 additions and 7 deletions
|
|
@ -130,7 +130,7 @@ class AddressesData(BaseModel):
|
|||
if self.noreply and (self.replyto is not None or self.replyroom is not None):
|
||||
log.warning(
|
||||
'"noreply" can\'t be used with "replyto" or "replyroom". Ignoring reply '
|
||||
f'fields ({self.replyto=}, {self.replyroom=}).'
|
||||
f"fields ({self.replyto=}, {self.replyroom=})."
|
||||
)
|
||||
# We reset instead of raising a ValueError, because this can happen in
|
||||
# incoming messages and we should not discard them.
|
||||
|
|
@ -516,17 +516,12 @@ class XEP_0033:
|
|||
return True
|
||||
|
||||
def get_handler(self, client):
|
||||
return XEP_0033_handler(self, client.profile)
|
||||
return XEP_0033_handler()
|
||||
|
||||
|
||||
@implementer(iwokkel.IDisco)
|
||||
class XEP_0033_handler(XMPPHandler):
|
||||
|
||||
def __init__(self, plugin_parent, profile):
|
||||
self.plugin_parent = plugin_parent
|
||||
self.host = plugin_parent.host
|
||||
self.profile = profile
|
||||
|
||||
def getDiscoInfo(
|
||||
self, requestor: jid.JID, target: jid.JID, nodeIdentifier: str = ""
|
||||
) -> list[disco.DiscoFeature]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue