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
@ -359,8 +359,8 @@ class xep_0030(base_plugin):
|
||||
subnode -- Optional node for the item.
|
||||
ijid -- The JID to modify.
|
||||
"""
|
||||
if jid is None:
|
||||
jid = ''
|
||||
if not jid:
|
||||
jid = self.xmpp.boundjid.full
|
||||
kwargs = {'ijid': jid,
|
||||
'name': name,
|
||||
'inode': subnode}
|
||||
|
Loading…
Reference in New Issue
Block a user