Parcourir la source

Fix get subdomain function

master
Andrei Bora il y a 5 ans
Parent
révision
c4ef7d8601
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      resources/prosody-plugins/util.lib.lua

+ 1
- 1
resources/prosody-plugins/util.lib.lua Voir le fichier

@@ -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("^%[([^%]]+)%](.+)$");

Chargement…
Annuler
Enregistrer