Fix bad reference with client & method call

This commit is contained in:
DinoThor 2025-02-07 08:32:51 +01:00 committed by nicoco
parent 2db5e0199c
commit e955cd308a

View File

@ -162,7 +162,7 @@ class XEP_0009(BasePlugin):
if not forwarded and self.xmpp.event_handled('jabber_rpc_method_call') > 1: if not forwarded and self.xmpp.event_handled('jabber_rpc_method_call') > 1:
return return
# Reply with error by default # 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() error.send()
def _on_jabber_rpc_method_response(self, iq, forwarded=False): 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: if not forwarded and self.xmpp.event_handled('jabber_rpc_method_response') > 1:
return return
error = self.client.plugin['xep_0009']._recpient_unavailable(iq) error = self.xmpp.plugin['xep_0009']._recipient_unvailable(iq)
error.send() error.send()
def _on_jabber_rpc_method_fault(self, iq, forwarded=False): 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: if not forwarded and self.xmpp.event_handled('jabber_rpc_method_fault') > 1:
return return
error = self.client.plugin['xep_0009']._recpient_unavailable(iq) error = self.xmpp.plugin['xep_0009']._recipient_unvailable(iq)
error.send() error.send()
def _on_jabber_rpc_error(self, iq, forwarded=False): 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: if not forwarded and self.xmpp.event_handled('jabber_rpc_error') > 1:
return return
error = self.client.plugin['xep_0009']._recpient_unavailable(iq, iq.get_payload()) error = self.xmpp.plugin['xep_0009']._recipient_unvailable(iq)
error.send() error.send()
def _send_fault(self, iq, fault_xml): # def _send_fault(self, iq, fault_xml): #