Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mod_iq_last.py')
-rw-r--r--modules/mod_iq_last.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mod_iq_last.py b/modules/mod_iq_last.py
index 8b79e94..4120585 100644
--- a/modules/mod_iq_last.py
+++ b/modules/mod_iq_last.py
@@ -17,10 +17,10 @@ def last_handler(cl, iq):
if id == TransportID:
last = int(time.time() - startTime)
name = IDENTIFIER["name"]
- elif source in Transport and id in Transport[source].friends:
- last = Transport[source].vk.method("execute.getLastTime", {"uid": id}) or 0
+ elif source in Users and id in Users[source].friends:
+ last = Users[source].vk.method("execute.getLastTime", {"uid": id}) or 0
last = int(time.time() - last)
- name = Transport[source].vk.getUserData(id).get("name", "Unknown")
+ name = Users[source].vk.getUserData(id).get("name", "Unknown")
else:
raise xmpp.NodeProcessed()
result = xmpp.Iq("result", to=jidFrom, frm=destination)