summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-01-19 17:27:53 -0500
committerLance Stout <lancestout@gmail.com>2011-01-19 17:27:53 -0500
commitacc2d071ac5da8e822bd3c63dda640a81e93deec (patch)
treef0b2c1e6773e62cea5c56c5ef883c747ecbaa4cc /sleekxmpp/plugins
parentd3b1f8c476f42968ac2cc7d7de1631ebd928af0f (diff)
downloadslixmpp-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.
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r--sleekxmpp/plugins/xep_0030/disco.py4
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}