mod_scansion_record: Remove unused JID mapping table [luacheck]
authorKim Alvefur <zash@zash.se>
Sat, 22 Sep 2018 17:24:28 +0200
changeset 9370 577c3a7f5045
parent 9369 9472b4044fc6
child 9371 0c5177738ffd
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
--- a/plugins/mod_scansion_record.lua	Sat Sep 22 15:14:25 2018 +0200
+++ b/plugins/mod_scansion_record.lua	Sat Sep 22 17:24:28 2018 +0200
@@ -2,8 +2,6 @@
 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 @@
 	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");