aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/members_only.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-20 14:46:06 +0100
committerKim Alvefur <zash@zash.se>2016-01-20 14:46:06 +0100
commitd1035ccf21a3fcab0909b18cb46c782ee820f0b0 (patch)
tree84d4ba28d235067a7bfff06e2f863830c8830dfd /plugins/muc/members_only.lib.lua
parentf763095b66a53b0fcc73f21a99478deabebd2a5b (diff)
downloadprosody-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.lua4
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;