aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-27 12:05:51 +0200
committerKim Alvefur <zash@zash.se>2016-04-27 12:05:51 +0200
commit6532dc402cfde82286a5b27fc3ffc564fa7b2097 (patch)
tree55e322278d43cf9fba923c604122a29270f97ecc
parent0b2e3ed49ff9b03339ce11e8d2296bcd31dd3f2b (diff)
downloadprosody-6532dc402cfde82286a5b27fc3ffc564fa7b2097.tar.gz
prosody-6532dc402cfde82286a5b27fc3ffc564fa7b2097.zip
MUC: Use correct room name variable, fixes traceback (thanks mathieui)
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
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