summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0231/stanza.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/plugins/xep_0231/stanza.py')
-rw-r--r--slixmpp/plugins/xep_0231/stanza.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0231/stanza.py b/slixmpp/plugins/xep_0231/stanza.py
index f7e6a66c..b3b96eff 100644
--- a/slixmpp/plugins/xep_0231/stanza.py
+++ b/slixmpp/plugins/xep_0231/stanza.py
@@ -21,10 +21,10 @@ class BitsOfBinary(ElementBase):
interfaces = set(('cid', 'max_age', 'type', 'data'))
def get_max_age(self):
- return self._get_attr('max-age')
+ return int(self._get_attr('max-age'))
def set_max_age(self, value):
- self._set_attr('max-age', value)
+ self._set_attr('max-age', str(value))
def get_data(self):
return base64.b64decode(bytes(self.xml.text))