Comparison

plugins/mod_scansion_record.lua @ 9352:0fdb70ad9fcc

mod_scansion_record: Record session connecting
author Kim Alvefur <zash@zash.se>
date Sat, 22 Sep 2018 14:00:11 +0200
parent 9351:b37f131d68c2
child 9353:02ae04efab0f
comparison
equal deleted inserted replaced
9351:b37f131d68c2 9352:0fdb70ad9fcc
53 session.scansion_id = user.character..(device ~= "" and "'s "..device or device); 53 session.scansion_id = user.character..(device ~= "" and "'s "..device or device);
54 54
55 full_jids[session.full_jid] = session.scansion_id; 55 full_jids[session.full_jid] = session.scansion_id;
56 56
57 module:log("warn", "Connected: %s's %s", user.character, device); 57 module:log("warn", "Connected: %s's %s", user.character, device);
58 record_event(session, "connects");
58 59
59 filters.add_filter(session, "stanzas/in", record_stanza_in); 60 filters.add_filter(session, "stanzas/in", record_stanza_in);
60 filters.add_filter(session, "stanzas/out", record_stanza_out); 61 filters.add_filter(session, "stanzas/out", record_stanza_out);
61 end); 62 end);
62 63