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):