From b62cac8db50cdf59811c3aedfc35bf89d41fbca0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 13 Dec 2016 21:23:48 +0100 Subject: mod_roster: Remove unused import [luacheck] --- plugins/mod_roster.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'plugins/mod_roster.lua') diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index 454acebb..6545e2be 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -19,7 +19,6 @@ local rm_load_roster = require "core.rostermanager".load_roster; local rm_remove_from_roster = require "core.rostermanager".remove_from_roster; local rm_add_to_roster = require "core.rostermanager".add_to_roster; local rm_roster_push = require "core.rostermanager".roster_push; -local core_post_stanza = prosody.core_post_stanza; module:add_feature("jabber:iq:roster"); -- cgit v1.2.3 From 39fb6e81383f5706e50001ec96633914b29dcd28 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 13 Dec 2016 21:24:12 +0100 Subject: mod_roster: Remove unused variable [luacheck] --- plugins/mod_roster.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'plugins/mod_roster.lua') diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index 6545e2be..443e5d4a 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -135,7 +135,6 @@ module:hook_global("user-deleted", function(event) local username, host = event.username, event.host; local origin = event.origin or prosody.hosts[host]; if host ~= module.host then return end - local bare = username .. "@" .. host; local roster = rm_load_roster(username, host); for jid, item in pairs(roster) do if jid then -- cgit v1.2.3 From ca89197fe9e68f0f37c50c1ff123b7b90d765aa5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 13 Dec 2016 21:25:11 +0100 Subject: mod_roster: Rename variable to silence shadowing warning [luacheck] --- plugins/mod_roster.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mod_roster.lua') diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index 443e5d4a..24c50678 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -142,9 +142,9 @@ module:hook_global("user-deleted", function(event) username = username, jid = jid, item = item, roster = roster, origin = origin, }); else - for jid in pairs(item.pending) do + for pending_jid in pairs(item.pending) do module:fire_event("roster-item-removed", { - username = username, jid = jid, roster = roster, origin = origin, + username = username, jid = pending_jid, roster = roster, origin = origin, }); end end -- cgit v1.2.3