diff --git a/libervia/backend/plugins/plugin_xep_0033.py b/libervia/backend/plugins/plugin_xep_0033.py index f4893b3f..e69fe8ee 100644 --- a/libervia/backend/plugins/plugin_xep_0033.py +++ b/libervia/backend/plugins/plugin_xep_0033.py @@ -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]: