瀏覽代碼

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ó 5 年之前
父節點
當前提交
bfd5db355d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      resources/prosody-plugins/mod_muc_size.lua

+ 1
- 1
resources/prosody-plugins/mod_muc_size.lua 查看文件

@@ -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…
取消
儲存