MUC: Use correct room name variable, fixes traceback (thanks mathieui)
authorKim Alvefur <zash@zash.se>
Wed, 27 Apr 2016 12:05:51 +0200
changeset 7407 57ca4dcd91a7
parent 7406 d6e6e21057f0
child 7408 5a65750d959a
MUC: Use correct room name variable, fixes traceback (thanks mathieui)
plugins/muc/mod_muc.lua
--- a/plugins/muc/mod_muc.lua	Tue Apr 26 13:40:03 2016 +0200
+++ b/plugins/muc/mod_muc.lua	Wed Apr 27 12:05:51 2016 +0200
@@ -203,7 +203,7 @@
 		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