Software /
code /
prosody
Comparison
util/jid.lua @ 7670:2be85cb3bc66
mod_carbons: Make the conditions for ignoring MUC PMs more specific (fixes #744)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Sep 2016 14:03:37 +0200 |
parent | 7321:a7199fc8a50e |
child | 8555:4f0f5b49bb03 |
comparison
equal
deleted
inserted
replaced
7665:2e553f80aedd | 7670:2be85cb3bc66 |
---|---|
44 return host; | 44 return host; |
45 end | 45 end |
46 | 46 |
47 local function prepped_split(jid) | 47 local function prepped_split(jid) |
48 local node, host, resource = split(jid); | 48 local node, host, resource = split(jid); |
49 if host then | 49 if host and host ~= "." then |
50 if sub(host, -1, -1) == "." then -- Strip empty root label | 50 if sub(host, -1, -1) == "." then -- Strip empty root label |
51 host = sub(host, 1, -2); | 51 host = sub(host, 1, -2); |
52 end | 52 end |
53 host = nameprep(host); | 53 host = nameprep(host); |
54 if not host then return; end | 54 if not host then return; end |