prosody muc_size plugin, room get info error fix (Traceback[httpserver]: /usr/lib/prosody/util/async.lua:137: /prosody-plugins/mod_muc_size.lua:141: attempt to concatenate local 'subdomain' (a nil value)

This commit is contained in:
Imre Faragó 2020-07-01 14:42:44 +02:00 committed by Дамян Минков
parent a4ca247056
commit bfd5db355d
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ function handle_get_room (event)
local room_address local room_address
= jid.join(room_name, muc_domain_prefix.."."..domain_name); = jid.join(room_name, muc_domain_prefix.."."..domain_name);
if subdomain ~= "" then if subdomain and subdomain ~= "" then
room_address = "["..subdomain.."]"..room_address; room_address = "["..subdomain.."]"..room_address;
end end