Working presence, presence probes and other fixes
[prosody.git] / util / jid.lua
index 784d2b645739eb2bd62aaa55a18ef353d5dfc049..b1e4131d067c7d6ee353d76179e4527a095e4e80 100644 (file)
@@ -4,7 +4,8 @@ local match = string.match;
 module "jid"
 
 function split(jid)
-       if not jid then return nil; end
+       if not jid then return; end
+       -- TODO verify JID, and return; if invalid
        local node = match(jid, "^([^@]+)@");
        local server = (node and match(jid, ".-@([^@/]+)")) or match(jid, "^([^@/]+)");
        local resource = match(jid, "/(.+)$");