# HG changeset patch # User Kim Alvefur # Date 1454576822 -3600 # Node ID e4c886946ecbb9db97666d0c30cc513c0a548254 # Parent fccf340f4e1ea3f8f43d659ff8a8df7112b10d4f mod_groups: Move variable to smaller scope diff -r fccf340f4e1e -r e4c886946ecb plugins/mod_groups.lua --- a/plugins/mod_groups.lua Thu Feb 04 10:06:09 2016 +0100 +++ b/plugins/mod_groups.lua Thu Feb 04 10:07:02 2016 +0100 @@ -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 @@ 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);