mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Fix disco add_item.
If no JID is specified for the item, use xmpp.boundjid.full.
This commit is contained in:
parent
d3b1f8c476
commit
acc2d071ac
1 changed files with 2 additions and 2 deletions
|
@ -359,8 +359,8 @@ class xep_0030(base_plugin):
|
||||||
subnode -- Optional node for the item.
|
subnode -- Optional node for the item.
|
||||||
ijid -- The JID to modify.
|
ijid -- The JID to modify.
|
||||||
"""
|
"""
|
||||||
if jid is None:
|
if not jid:
|
||||||
jid = ''
|
jid = self.xmpp.boundjid.full
|
||||||
kwargs = {'ijid': jid,
|
kwargs = {'ijid': jid,
|
||||||
'name': name,
|
'name': name,
|
||||||
'inode': subnode}
|
'inode': subnode}
|
||||||
|
|
Loading…
Reference in a new issue