mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Be more lenient on required arguments to disco node handlers.
This commit is contained in:
parent
1bb0b38868
commit
a11e6c0b77
1 changed files with 2 additions and 2 deletions
|
@ -575,7 +575,7 @@ class xep_0030(base_plugin):
|
||||||
"""
|
"""
|
||||||
self._run_node_handler('del_features', jid, node, None, kwargs)
|
self._run_node_handler('del_features', jid, node, None, kwargs)
|
||||||
|
|
||||||
def _run_node_handler(self, htype, jid, node, ifrom, data={}):
|
def _run_node_handler(self, htype, jid, node=None, ifrom=None, data={}):
|
||||||
"""
|
"""
|
||||||
Execute the most specific node handler for the given
|
Execute the most specific node handler for the given
|
||||||
JID/node combination.
|
JID/node combination.
|
||||||
|
@ -586,7 +586,7 @@ class xep_0030(base_plugin):
|
||||||
node -- The node requested.
|
node -- The node requested.
|
||||||
data -- Optional, custom data to pass to the handler.
|
data -- Optional, custom data to pass to the handler.
|
||||||
"""
|
"""
|
||||||
if jid is None:
|
if jid in (None, ''):
|
||||||
if self.xmpp.is_component:
|
if self.xmpp.is_component:
|
||||||
jid = self.xmpp.boundjid.full
|
jid = self.xmpp.boundjid.full
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue