소스 검색

Fix get subdomain function

j8
Andrei Bora 4 년 전
부모
커밋
c4ef7d8601
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      resources/prosody-plugins/util.lib.lua

+ 1
- 1
resources/prosody-plugins/util.lib.lua 파일 보기

@@ -239,7 +239,7 @@ end
239 239
 function extract_subdomain(room_node)
240 240
     -- optimization, skip matching if there is no subdomain, no [subdomain] part in the beginning of the node
241 241
     if not starts_with(room_node, '[') then
242
-        return room_node;
242
+        return nil,room_node;
243 243
     end
244 244
 
245 245
     return room_node:match("^%[([^%]]+)%](.+)$");

Loading…
취소
저장