Comparison

util/jid.lua @ 104:cfbd3b849f9e

Fixed: util/jid.lua now returns module object
author Waqas Hussain <waqas20@gmail.com>
date Tue, 14 Oct 2008 09:54:49 +0500
parent 29:b847875801e5
child 109:7efedc96352a
comparison
equal deleted inserted replaced
103:ebdb7875443e 104:cfbd3b849f9e
8 local node = match(jid, "^([^@]+)@"); 8 local node = match(jid, "^([^@]+)@");
9 local server = (node and match(jid, ".-@([^@/]+)")) or match(jid, "^([^@/]+)"); 9 local server = (node and match(jid, ".-@([^@/]+)")) or match(jid, "^([^@/]+)");
10 local resource = match(jid, "/(.+)$"); 10 local resource = match(jid, "/(.+)$");
11 return node, server, resource; 11 return node, server, resource;
12 end 12 end
13
14 return _M;