aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-04 10:07:02 +0100
committerKim Alvefur <zash@zash.se>2016-02-04 10:07:02 +0100
commit088ec67b95eff8f3689c15dd43dced3f9b163c1d (patch)
tree6251f03e3cba11291697bceae767394a2be82bf1
parent7eb5fb8b1c44ec42b63d9964d57b6904da4a0bab (diff)
downloadprosody-088ec67b95eff8f3689c15dd43dced3f9b163c1d.tar.gz
prosody-088ec67b95eff8f3689c15dd43dced3f9b163c1d.zip
mod_groups: Move variable to smaller scope
-rw-r--r--plugins/mod_groups.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mod_groups.lua b/plugins/mod_groups.lua
index 62a38246..d696d453 100644
--- a/plugins/mod_groups.lua
+++ b/plugins/mod_groups.lua
@@ -10,8 +10,6 @@
local groups;
local members;
-local groups_file;
-
local jid, datamanager = require "util.jid", require "util.datamanager";
local jid_prep = jid.prep;
@@ -82,7 +80,7 @@ function remove_virtual_contacts(username, host, datastore, data)
end
function module.load()
- groups_file = module:get_option_path("groups_file", nil, "config");
+ local groups_file = module:get_option_path("groups_file", nil, "config");
if not groups_file then return; end
module:hook("roster-load", inject_roster_contacts);