Software /
code /
prosody
Comparison
plugins/mod_scansion_record.lua @ 9371:ac17b0aa3dfb
mod_scansion_record: Use already composed identity string in log message
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Sep 2018 19:28:52 +0200 |
parent | 9370:7872abb9fc1f |
child | 9372:0e685b7ec039 |
comparison
equal
deleted
inserted
replaced
9370:7872abb9fc1f | 9371:ac17b0aa3dfb |
---|---|
78 record_object("Client", session.scansion_id, { | 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", session.scansion_id); |
84 record_event(session, "connects"); | 84 record_event(session, "connects"); |
85 | 85 |
86 filters.add_filter(session, "stanzas/in", record_stanza_in); | 86 filters.add_filter(session, "stanzas/in", record_stanza_in); |
87 filters.add_filter(session, "stanzas/out", record_stanza_out); | 87 filters.add_filter(session, "stanzas/out", record_stanza_out); |
88 end); | 88 end); |