From c14f4168f2ae10f931f46ec9d43029bce889369f Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 31 Aug 2010 00:38:44 +0100 Subject: util.jid: Fix parsing of JIDs with no nodepart and an @ in the resourcepart (thanks seth) --- util/jid.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/jid.lua') diff --git a/util/jid.lua b/util/jid.lua index 9128ce4e..069817c6 100644 --- a/util/jid.lua +++ b/util/jid.lua @@ -17,7 +17,7 @@ module "jid" 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); -- cgit v1.2.3