aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-08-08 08:10:11 +0100
committerMatthew Wild <mwild1@gmail.com>2018-08-08 08:10:11 +0100
commitf354f4835cfa2116cd6609ab00ca2ce2ff21db93 (patch)
tree9b8860e4b839e3d53925502b7b5c5078e4c4fa4b /plugins/muc/muc.lib.lua
parentc3d3145d091f45b03bda954f34abb230b2ecf153 (diff)
downloadprosody-f354f4835cfa2116cd6609ab00ca2ce2ff21db93.tar.gz
prosody-f354f4835cfa2116cd6609ab00ca2ce2ff21db93.zip
mod_muc: Fix incorrect variable usage [luacheck]
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 5a25cf81..270a7516 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -362,7 +362,7 @@ function room_mt:handle_kickable(origin, stanza) -- luacheck: ignore 212
if occupant == nil then return nil; end
local type, condition, text = stanza:get_error();
local error_message = "Kicked: "..(condition and condition:gsub("%-", " ") or "presence error");
- if text and room:get_whois() == "anyone" then
+ if text and self:get_whois() == "anyone" then
error_message = error_message..": "..text;
end
occupant:set_session(real_jid, st.presence({type="unavailable"})