util/jid.lua

changeset 3480
97831dfe7f72
parent 3375
29e51e1c7c3d
--- a/util/jid.lua	Tue Aug 31 00:28:49 2010 +0100
+++ b/util/jid.lua	Tue Aug 31 00:38:44 2010 +0100
@@ -17,7 +17,7 @@
 
 local function _split(jid)
 	if not jid then return; end
-	local node, nodepos = match(jid, "^([^@]+)@()");
+	local node, nodepos = match(jid, "^([^@/]+)@()");
 	local host, hostpos = match(jid, "^([^@/]+)()", nodepos)
 	if node and not host then return nil, nil, nil; end
 	local resource = match(jid, "^/(.+)$", hostpos);

mercurial