Software /
code /
prosody
Diff
plugins/mod_groups.lua @ 7129:e4c886946ecb
mod_groups: Move variable to smaller scope
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 04 Feb 2016 10:07:02 +0100 |
parent | 7128:fccf340f4e1e |
child | 8989:5a25c5d22fe5 |
child | 8991:37ebcc7c6768 |
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);