diff options
author | Kim Alvefur <zash@zash.se> | 2016-01-20 14:46:06 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-01-20 14:46:06 +0100 |
commit | d1035ccf21a3fcab0909b18cb46c782ee820f0b0 (patch) | |
tree | 84d4ba28d235067a7bfff06e2f863830c8830dfd /plugins/muc/members_only.lib.lua | |
parent | f763095b66a53b0fcc73f21a99478deabebd2a5b (diff) | |
download | prosody-d1035ccf21a3fcab0909b18cb46c782ee820f0b0.tar.gz prosody-d1035ccf21a3fcab0909b18cb46c782ee820f0b0.zip |
MUC: Rename variables to please luacheck
Diffstat (limited to 'plugins/muc/members_only.lib.lua')
-rw-r--r-- | plugins/muc/members_only.lib.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/members_only.lib.lua b/plugins/muc/members_only.lib.lua index 5e29a68d..d6388fc6 100644 --- a/plugins/muc/members_only.lib.lua +++ b/plugins/muc/members_only.lib.lua @@ -10,7 +10,7 @@ local st = require "util.stanza"; local muc_util = module:require "muc/util"; -local valid_roles, valid_affiliations = muc_util.valid_roles, muc_util.valid_affiliations; +local valid_affiliations = muc_util.valid_affiliations; local function get_members_only(room) return room._data.members_only; @@ -29,7 +29,7 @@ local function set_members_only(room, members_only) as well as any remaining occupants. ]] local occupants_changed = {}; - for nick, occupant in room:each_occupant() do + for _, occupant in room:each_occupant() do local affiliation = room:get_affiliation(occupant.bare_jid); if valid_affiliations[affiliation or "none"] <= valid_affiliations.none then occupant.role = nil; |