ソースを参照

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
 

読み込み中…
キャンセル
保存