changeset 6340 | 7e820979fd9b |
parent 6339 | 1c19464cde77 |
child 6780 | 5de6b93d0190 |
--- a/util/jid.lua Thu Aug 07 17:35:11 2014 +0200 +++ b/util/jid.lua Thu Aug 07 17:43:28 2014 +0200 @@ -37,11 +37,7 @@ split = _split; function bare(jid) - local node, host = _split(jid); - if node and host then - return node.."@"..host; - end - return host; + return jid and match(jid, "^[^/]+"); end local function _prepped_split(jid)