diff options
author | Lance Stout <lancestout@gmail.com> | 2011-01-19 17:27:53 -0500 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-01-19 17:27:53 -0500 |
commit | acc2d071ac5da8e822bd3c63dda640a81e93deec (patch) | |
tree | f0b2c1e6773e62cea5c56c5ef883c747ecbaa4cc | |
parent | d3b1f8c476f42968ac2cc7d7de1631ebd928af0f (diff) | |
download | slixmpp-acc2d071ac5da8e822bd3c63dda640a81e93deec.tar.gz slixmpp-acc2d071ac5da8e822bd3c63dda640a81e93deec.tar.bz2 slixmpp-acc2d071ac5da8e822bd3c63dda640a81e93deec.tar.xz slixmpp-acc2d071ac5da8e822bd3c63dda640a81e93deec.zip |
Fix disco add_item.
If no JID is specified for the item, use xmpp.boundjid.full.
-rw-r--r-- | sleekxmpp/plugins/xep_0030/disco.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/xep_0030/disco.py b/sleekxmpp/plugins/xep_0030/disco.py index 67468735..a976b988 100644 --- a/sleekxmpp/plugins/xep_0030/disco.py +++ b/sleekxmpp/plugins/xep_0030/disco.py @@ -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} |