Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 9147:e2bf4cd6d7a3
mod_muc: Fix incorrect variable usage [luacheck]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 08 Aug 2018 08:10:11 +0100 |
parent | 9145:51c5dd7a8ab9 |
child | 9148:a474c94d0b0a |
comparison
equal
deleted
inserted
replaced
9146:6bd3602a70e2 | 9147:e2bf4cd6d7a3 |
---|---|
360 local real_jid = stanza.attr.from; | 360 local real_jid = stanza.attr.from; |
361 local occupant = self:get_occupant_by_real_jid(real_jid); | 361 local occupant = self:get_occupant_by_real_jid(real_jid); |
362 if occupant == nil then return nil; end | 362 if occupant == nil then return nil; end |
363 local type, condition, text = stanza:get_error(); | 363 local type, condition, text = stanza:get_error(); |
364 local error_message = "Kicked: "..(condition and condition:gsub("%-", " ") or "presence error"); | 364 local error_message = "Kicked: "..(condition and condition:gsub("%-", " ") or "presence error"); |
365 if text and room:get_whois() == "anyone" then | 365 if text and self:get_whois() == "anyone" then |
366 error_message = error_message..": "..text; | 366 error_message = error_message..": "..text; |
367 end | 367 end |
368 occupant:set_session(real_jid, st.presence({type="unavailable"}) | 368 occupant:set_session(real_jid, st.presence({type="unavailable"}) |
369 :tag('status'):text(error_message)); | 369 :tag('status'):text(error_message)); |
370 local is_last_session = occupant.jid == real_jid; | 370 local is_last_session = occupant.jid == real_jid; |