Changeset

9147:e2bf4cd6d7a3

mod_muc: Fix incorrect variable usage [luacheck]
author Matthew Wild <mwild1@gmail.com>
date Wed, 08 Aug 2018 08:10:11 +0100
parents 9146:6bd3602a70e2
children 9148:a474c94d0b0a
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Tue Aug 07 21:14:43 2018 +0100
+++ b/plugins/muc/muc.lib.lua	Wed Aug 08 08:10:11 2018 +0100
@@ -362,7 +362,7 @@
 	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"})