summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0012.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins/xep_0012.py')
-rw-r--r--sleekxmpp/plugins/xep_0012.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/sleekxmpp/plugins/xep_0012.py b/sleekxmpp/plugins/xep_0012.py
index d636d4d7..8fe818b8 100644
--- a/sleekxmpp/plugins/xep_0012.py
+++ b/sleekxmpp/plugins/xep_0012.py
@@ -112,7 +112,4 @@ class xep_0012(base.base_plugin):
iq.attrib['from'] = self.xmpp.boundjid.full
id = iq.get('id')
result = iq.send()
- if result and result is not None and result.get('type', 'error') != 'error':
- return result['last_activity']['seconds']
- else:
- return False
+ return result['last_activity']['seconds']