Fix disco add_item.

If no JID is specified for the item, use xmpp.boundjid.full.
This commit is contained in:
Lance Stout 2011-01-19 17:27:53 -05:00
parent d3b1f8c476
commit acc2d071ac

View file

@ -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}