Explorar el Código

Fix get subdomain function

j8
Andrei Bora hace 4 años
padre
commit
c4ef7d8601
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      resources/prosody-plugins/util.lib.lua

+ 1
- 1
resources/prosody-plugins/util.lib.lua Ver fichero

@@ -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…
Cancelar
Guardar