From: Kim Alvefur Date: Wed, 27 Apr 2016 10:05:51 +0000 (+0200) Subject: MUC: Use correct room name variable, fixes traceback (thanks mathieui) X-Git-Url: https://git.enpas.org/?p=prosody.git;a=commitdiff_plain;h=be7359164d5a2386006ac3e41a2558446edb6378 MUC: Use correct room name variable, fixes traceback (thanks mathieui) --- diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index be34c652..14b716e1 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -203,7 +203,7 @@ module:hook("host-disco-items", function(event) for room in each_room() do if not room:get_hidden() then local jid, room_name = room.jid, room:get_name(); - room_items_cache[jid] = name; + room_items_cache[jid] = room_name; reply:tag("item", { jid = jid, name = room_name }):up(); end end