Only send time if Iq type is get.
This commit is contained in:
parent
e5582694c0
commit
1a75b76916
@ -72,6 +72,7 @@ class XEP_0202(BasePlugin):
|
|||||||
Arguments:
|
Arguments:
|
||||||
iq -- The Iq time request stanza.
|
iq -- The Iq time request stanza.
|
||||||
"""
|
"""
|
||||||
|
if iq['type'] == 'get':
|
||||||
iq.reply()
|
iq.reply()
|
||||||
iq['entity_time']['time'] = self.local_time(iq['to'])
|
iq['entity_time']['time'] = self.local_time(iq['to'])
|
||||||
iq.send()
|
iq.send()
|
||||||
|
Loading…
Reference in New Issue
Block a user