aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitde6e734596d3abb660177b2cee47cf2ad5299d8e (patch)
tree6251f03e3cba11291697bceae767394a2be82bf1 /plugins
parentbccfb4fd28ade9f23ec5b67bb95906fb053417f0 (diff)
downloadprosody-de6e734596d3abb660177b2cee47cf2ad5299d8e.tar.gz
prosody-de6e734596d3abb660177b2cee47cf2ad5299d8e.zip
mod_groups: Move variable to smaller scope
Diffstat (limited to 'plugins')
-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);