Mercurial > libervia-backend
changeset 4313:530f86f078cc
plugin XEP-0033: formatting.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 28 Sep 2024 15:52:14 +0200 (2 months ago) |
parents | e39c8e805488 |
children | 6a70fcd93a7a |
files | libervia/backend/plugins/plugin_xep_0033.py |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0033.py Thu Sep 26 16:12:01 2024 +0200 +++ b/libervia/backend/plugins/plugin_xep_0033.py Sat Sep 28 15:52:14 2024 +0200 @@ -130,7 +130,7 @@ 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 @@ 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]: