summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0163.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-10-09 11:28:09 -0700
committerLance Stout <lancestout@gmail.com>2013-10-09 11:28:09 -0700
commitfb5d20c4f8993bf35c8e8653fec8d9795e8e6f05 (patch)
tree7861bbe84ba2c8ee9fcb261d247f25e497e98e4f /sleekxmpp/plugins/xep_0163.py
parent65e3122f52cbc5e4c908d9527b1604cdf9ed6729 (diff)
downloadslixmpp-fb5d20c4f8993bf35c8e8653fec8d9795e8e6f05.tar.gz
slixmpp-fb5d20c4f8993bf35c8e8653fec8d9795e8e6f05.tar.bz2
slixmpp-fb5d20c4f8993bf35c8e8653fec8d9795e8e6f05.tar.xz
slixmpp-fb5d20c4f8993bf35c8e8653fec8d9795e8e6f05.zip
Ensure PEP updates default to item if of 'current'
Diffstat (limited to 'sleekxmpp/plugins/xep_0163.py')
-rw-r--r--sleekxmpp/plugins/xep_0163.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0163.py b/sleekxmpp/plugins/xep_0163.py
index 5aa3aef9..2d1a63b7 100644
--- a/sleekxmpp/plugins/xep_0163.py
+++ b/sleekxmpp/plugins/xep_0163.py
@@ -107,6 +107,8 @@ class XEP_0163(BasePlugin):
"""
if node is None:
node = stanza.namespace
+ if id is None:
+ id = 'current'
return self.xmpp['xep_0060'].publish(ifrom, node,
id=id,