From 61d21c9a6538cbc3be605c5b18859eb0e3dbd947 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 22 Sep 2018 17:24:28 +0200 Subject: 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. --- plugins/mod_scansion_record.lua | 4 ---- 1 file changed, 4 deletions(-) (limited to 'plugins/mod_scansion_record.lua') diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua index 3e2644e0..0ee22778 100644 --- a/plugins/mod_scansion_record.lua +++ b/plugins/mod_scansion_record.lua @@ -2,8 +2,6 @@ local names = { "Romeo", "Juliet", "Mercutio", "Tybalt", "Benvolio" }; local devices = { "", "phone", "laptop", "tablet", "toaster", "fridge", "shoe" }; local users = {}; -local full_jids = {}; - local filters = require "util.filters"; local id = require "util.id"; local dt = require "util.datetime"; @@ -69,8 +67,6 @@ module:hook("resource-bind", function (event) session.scansion_device = device; session.scansion_id = user.character..(device ~= "" and "'s "..device or device); - full_jids[session.full_jid] = session.scansion_id; - module:log("warn", "Connected: %s's %s", user.character, device); record_event(session, "connects"); -- cgit v1.2.3