From 6fb3ecd414f24374f17811d7ad2fd01e4924e311 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 23 Feb 2015 19:39:13 +0100 Subject: XEP-0202: wrap get_entity_time() with coroutine_wrapper --- slixmpp/plugins/xep_0202/time.py | 2 ++ 1 file changed, 2 insertions(+) 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. -- cgit v1.2.3