From e955cd308af8a326f923abcf66749c6c2abc653a Mon Sep 17 00:00:00 2001 From: DinoThor Date: Fri, 7 Feb 2025 08:32:51 +0100 Subject: [PATCH] Fix bad reference with client & method call --- slixmpp/plugins/xep_0009/rpc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slixmpp/plugins/xep_0009/rpc.py b/slixmpp/plugins/xep_0009/rpc.py index b00432b0..815db4f8 100644 --- a/slixmpp/plugins/xep_0009/rpc.py +++ b/slixmpp/plugins/xep_0009/rpc.py @@ -162,7 +162,7 @@ class XEP_0009(BasePlugin): if not forwarded and self.xmpp.event_handled('jabber_rpc_method_call') > 1: return # Reply with error by default - error = self.client.plugin['xep_0009']._item_not_found(iq) + error = self.xmpp.plugin['xep_0009']._item_not_found(iq) error.send() def _on_jabber_rpc_method_response(self, iq, forwarded=False): @@ -175,7 +175,7 @@ class XEP_0009(BasePlugin): """ if not forwarded and self.xmpp.event_handled('jabber_rpc_method_response') > 1: return - error = self.client.plugin['xep_0009']._recpient_unavailable(iq) + error = self.xmpp.plugin['xep_0009']._recipient_unvailable(iq) error.send() def _on_jabber_rpc_method_fault(self, iq, forwarded=False): @@ -188,7 +188,7 @@ class XEP_0009(BasePlugin): """ if not forwarded and self.xmpp.event_handled('jabber_rpc_method_fault') > 1: return - error = self.client.plugin['xep_0009']._recpient_unavailable(iq) + error = self.xmpp.plugin['xep_0009']._recipient_unvailable(iq) error.send() def _on_jabber_rpc_error(self, iq, forwarded=False): @@ -201,7 +201,7 @@ class XEP_0009(BasePlugin): """ if not forwarded and self.xmpp.event_handled('jabber_rpc_error') > 1: return - error = self.client.plugin['xep_0009']._recpient_unavailable(iq, iq.get_payload()) + error = self.xmpp.plugin['xep_0009']._recipient_unvailable(iq) error.send() def _send_fault(self, iq, fault_xml): #