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; |