mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_groups: Move variable to smaller scope
This commit is contained in:
parent
bccfb4fd28
commit
de6e734596
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue