summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-16 23:42:34 -0700
committerLance Stout <lancestout@gmail.com>2012-03-16 23:42:34 -0700
commitab2e43d052b91653f17310c7947e7813e24ca4a7 (patch)
tree3aadcc6c41a6e173eca90e84cfe5109788c259d2 /sleekxmpp
parent0c24fbdb06ab3a6e243a98c70ee10b8e6ac41a29 (diff)
downloadslixmpp-ab2e43d052b91653f17310c7947e7813e24ca4a7.tar.gz
slixmpp-ab2e43d052b91653f17310c7947e7813e24ca4a7.tar.bz2
slixmpp-ab2e43d052b91653f17310c7947e7813e24ca4a7.tar.xz
slixmpp-ab2e43d052b91653f17310c7947e7813e24ca4a7.zip
Re-add support for special case of 'presence' expiry value.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/plugins/xep_0060/stanza/pubsub_event.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0060/stanza/pubsub_event.py b/sleekxmpp/plugins/xep_0060/stanza/pubsub_event.py
index 4b2012b4..c0d4929e 100644
--- a/sleekxmpp/plugins/xep_0060/stanza/pubsub_event.py
+++ b/sleekxmpp/plugins/xep_0060/stanza/pubsub_event.py
@@ -121,6 +121,8 @@ class EventSubscription(ElementBase):
def get_expiry(self):
expiry = self._get_attr('expiry')
+ if expiry.lower() == 'presence':
+ return expiry
return xep_0082.parse(expiry)
def set_expiry(self, value):