From ab2e43d052b91653f17310c7947e7813e24ca4a7 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 16 Mar 2012 23:42:34 -0700 Subject: Re-add support for special case of 'presence' expiry value. --- sleekxmpp/plugins/xep_0060/stanza/pubsub_event.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- cgit v1.2.3