Comparison

util/jid.lua @ 384:4542bcdb7f55

Removed useless check
author Waqas Hussain <waqas20@gmail.com>
date Sat, 22 Nov 2008 22:37:44 +0500
parent 369:42de92add67b
child 519:cccd610a0ef9
comparison
equal deleted inserted replaced
372:e7c1e30d06d5 384:4542bcdb7f55
15 15
16 function bare(jid) 16 function bare(jid)
17 local node, host = split(jid); 17 local node, host = split(jid);
18 if node and host then 18 if node and host then
19 return node.."@"..host; 19 return node.."@"..host;
20 elseif host then
21 return host;
22 end 20 end
23 return nil; 21 return host;
24 end 22 end
25 23
26 return _M; 24 return _M;