Software /
code /
prosody
Diff
plugins/muc/members_only.lib.lua @ 7086:6cc7c9da29ed
MUC: Rename variables to please luacheck
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 20 Jan 2016 14:46:06 +0100 |
parent | 6991:84e01dbb739e |
child | 7352:50b24b3476e6 |
line wrap: on
line diff
--- a/plugins/muc/members_only.lib.lua Sat Jan 16 22:44:43 2016 +0100 +++ b/plugins/muc/members_only.lib.lua Wed Jan 20 14:46:06 2016 +0100 @@ -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 @@ 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;