Software /
code /
prosody
Comparison
plugins/mod_scansion_record.lua @ 9367:577c3a7f5045
mod_scansion_record: Remove unused JID mapping table [luacheck]
I have no idea what Matthew meant to use this for. Easy enough to put back.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Sep 2018 17:24:28 +0200 |
parent | 9366:9472b4044fc6 |
child | 9368:0c5177738ffd |
comparison
equal
deleted
inserted
replaced
9366:9472b4044fc6 | 9367:577c3a7f5045 |
---|---|
1 local names = { "Romeo", "Juliet", "Mercutio", "Tybalt", "Benvolio" }; | 1 local names = { "Romeo", "Juliet", "Mercutio", "Tybalt", "Benvolio" }; |
2 local devices = { "", "phone", "laptop", "tablet", "toaster", "fridge", "shoe" }; | 2 local devices = { "", "phone", "laptop", "tablet", "toaster", "fridge", "shoe" }; |
3 local users = {}; | 3 local users = {}; |
4 | |
5 local full_jids = {}; | |
6 | 4 |
7 local filters = require "util.filters"; | 5 local filters = require "util.filters"; |
8 local id = require "util.id"; | 6 local id = require "util.id"; |
9 local dt = require "util.datetime"; | 7 local dt = require "util.datetime"; |
10 local dm = require "util.datamanager"; | 8 local dm = require "util.datamanager"; |
67 end | 65 end |
68 session.scansion_character = user.character; | 66 session.scansion_character = user.character; |
69 session.scansion_device = device; | 67 session.scansion_device = device; |
70 session.scansion_id = user.character..(device ~= "" and "'s "..device or device); | 68 session.scansion_id = user.character..(device ~= "" and "'s "..device or device); |
71 | 69 |
72 full_jids[session.full_jid] = session.scansion_id; | |
73 | |
74 module:log("warn", "Connected: %s's %s", user.character, device); | 70 module:log("warn", "Connected: %s's %s", user.character, device); |
75 record_event(session, "connects"); | 71 record_event(session, "connects"); |
76 | 72 |
77 filters.add_filter(session, "stanzas/in", record_stanza_in); | 73 filters.add_filter(session, "stanzas/in", record_stanza_in); |
78 filters.add_filter(session, "stanzas/out", record_stanza_out); | 74 filters.add_filter(session, "stanzas/out", record_stanza_out); |