Browse Source

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)

j8
Imre Faragó 4 years ago
parent
commit
bfd5db355d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      resources/prosody-plugins/mod_muc_size.lua

+ 1
- 1
resources/prosody-plugins/mod_muc_size.lua View File

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

Loading…
Cancel
Save