Comparison

plugins/mod_scansion_record.lua @ 9370:7872abb9fc1f

mod_scansion_record: Record the full identity including device name
author Kim Alvefur <zash@zash.se>
date Sat, 22 Sep 2018 19:04:12 +0200
parent 9369:dd452f932b67
child 9371:ac17b0aa3dfb
comparison
equal deleted inserted replaced
9369:dd452f932b67 9370:7872abb9fc1f
73 end 73 end
74 session.scansion_character = user.character; 74 session.scansion_character = user.character;
75 session.scansion_device = device; 75 session.scansion_device = device;
76 session.scansion_id = user.character..(device ~= "" and "'s "..device or device); 76 session.scansion_id = user.character..(device ~= "" and "'s "..device or device);
77 77
78 record_object("Client", user.character, { 78 record_object("Client", session.scansion_id, {
79 jid = session.full_jid, 79 jid = session.full_jid,
80 password = "password", 80 password = "password",
81 }); 81 });
82 82
83 module:log("warn", "Connected: %s's %s", user.character, device); 83 module:log("warn", "Connected: %s's %s", user.character, device);