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