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 | acc11c8eb3ed2b827150eed78761007856eb2e36 (patch) | |
tree | 84d4ba28d235067a7bfff06e2f863830c8830dfd /plugins/muc/members_only.lib.lua | |
parent | 48f8c23f4ab0e8400e20101960055eb29c4aa6f7 (diff) | |
download | prosody-acc11c8eb3ed2b827150eed78761007856eb2e36.tar.gz prosody-acc11c8eb3ed2b827150eed78761007856eb2e36.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; |