Software /
code /
prosody
Changeset
7129:e4c886946ecb
mod_groups: Move variable to smaller scope
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 04 Feb 2016 10:07:02 +0100 |
parents | 7128:fccf340f4e1e |
children | 7130:2b48ce0bfe7d |
files | plugins/mod_groups.lua |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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);