From 2d90deb96a86af6d8365994caa26a1ec1474a065 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 26 Aug 2011 22:04:06 -0700 Subject: The ifrom parameter doesn't need special treatment. --- sleekxmpp/plugins/xep_0202/time.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sleekxmpp/plugins/xep_0202/time.py') diff --git a/sleekxmpp/plugins/xep_0202/time.py b/sleekxmpp/plugins/xep_0202/time.py index bcad8bc8..2c6faa4b 100644 --- a/sleekxmpp/plugins/xep_0202/time.py +++ b/sleekxmpp/plugins/xep_0202/time.py @@ -85,8 +85,7 @@ class xep_0202(base_plugin): """ iq = self.xmpp.Iq() iq['type'] = 'get' - iq['to'] = 'to' - if ifrom: - iq['from'] = 'ifrom' + iq['to'] = to + iq['from'] = ifrom iq.enable('entity_time') return iq.send(**iqargs) -- cgit v1.2.3