Software /
code /
prosody
Changeset
6889:7f7920f2aebf
Backout 7e820979fd9b (broke tests)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 02 Oct 2015 12:12:24 +0200 |
parents | 6887:da38775bda82 |
children | 6890:47cd0b4b5544 6891:7f76c77ddcb8 |
files | util/jid.lua |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/jid.lua Sun Sep 27 00:36:34 2015 +0200 +++ b/util/jid.lua Fri Oct 02 12:12:24 2015 +0200 @@ -36,7 +36,11 @@ end local function bare(jid) - return jid and match(jid, "^[^/]+"); + local node, host = _split(jid); + if node and host then + return node.."@"..host; + end + return host; end local function prepped_split(jid)