summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-02-23 19:39:13 +0100
committermathieui <mathieui@mathieui.net>2015-02-24 22:46:07 +0100
commit6fb3ecd414f24374f17811d7ad2fd01e4924e311 (patch)
tree7494d2e59c47d53e8282747b1b64705567456ade
parentc214e4f03775f603c05a36ad763c66be5870238d (diff)
downloadslixmpp-6fb3ecd414f24374f17811d7ad2fd01e4924e311.tar.gz
slixmpp-6fb3ecd414f24374f17811d7ad2fd01e4924e311.tar.bz2
slixmpp-6fb3ecd414f24374f17811d7ad2fd01e4924e311.tar.xz
slixmpp-6fb3ecd414f24374f17811d7ad2fd01e4924e311.zip
XEP-0202: wrap get_entity_time() with coroutine_wrapper
-rw-r--r--slixmpp/plugins/xep_0202/time.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0202/time.py b/slixmpp/plugins/xep_0202/time.py
index fbf6b4f0..2c025f4a 100644
--- a/slixmpp/plugins/xep_0202/time.py
+++ b/slixmpp/plugins/xep_0202/time.py
@@ -9,6 +9,7 @@
import logging
from slixmpp.stanza.iq import Iq
+from slixmpp import coroutine_wrapper
from slixmpp.xmlstream import register_stanza_plugin
from slixmpp.xmlstream.handler import Callback
from slixmpp.xmlstream.matcher import StanzaPath
@@ -76,6 +77,7 @@ class XEP_0202(BasePlugin):
iq['entity_time']['time'] = self.local_time(iq['to'])
iq.send()
+ @coroutine_wrapper
def get_entity_time(self, to, ifrom=None, **iqargs):
"""
Request the time from another entity.