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/mod_muc.lua | |
parent | f763095b66a53b0fcc73f21a99478deabebd2a5b (diff) | |
download | prosody-d1035ccf21a3fcab0909b18cb46c782ee820f0b0.tar.gz prosody-d1035ccf21a3fcab0909b18cb46c782ee820f0b0.zip |
MUC: Rename variables to please luacheck
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r-- | plugins/muc/mod_muc.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 16727f26..4f5831a6 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -13,7 +13,7 @@ end local muclib = module:require "muc"; room_mt = muclib.room_mt; -- Yes, global. -local affiliation_notify = module:require "muc/affiliation_notify"; +local affiliation_notify = module:require "muc/affiliation_notify"; -- luacheck: ignore 211 local name = module:require "muc/name"; room_mt.get_name = name.get; @@ -102,7 +102,7 @@ local function room_save(room, forced) local is_persistent = persistent.get(room); persistent_rooms:set(nil, room.jid, is_persistent); if is_persistent then - local history = room._data.history; + local room_history = room._data.history; room._data.history = nil; local data = { jid = room.jid; @@ -110,7 +110,7 @@ local function room_save(room, forced) _affiliations = room._affiliations; }; room_configs:set(node, data); - room._data.history = history; + room._data.history = room_history; elseif forced then room_configs:set(node, nil); if not next(room._occupants) then -- Room empty @@ -294,8 +294,8 @@ do -- Ad-hoc commands end, function(fields, errors) if errors then local errmsg = {}; - for name, err in pairs(errors) do - errmsg[#errmsg + 1] = name .. ": " .. err; + for field, err in pairs(errors) do + errmsg[#errmsg + 1] = field .. ": " .. err; end return { status = "completed", error = { message = t_concat(errmsg, "\n") } }; end |