# HG changeset patch # User Goffi # Date 1727531534 -7200 # Node ID 530f86f078ccd261a5ae95054b9ec35504c087a6 # Parent e39c8e8054880782ef9b7410e25e83f22957c449 plugin XEP-0033: formatting. diff -r e39c8e805488 -r 530f86f078cc libervia/backend/plugins/plugin_xep_0033.py --- 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]: