0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00

ircd:Ⓜ️🆔 Allow empty host in rewrite constructor.

This commit is contained in:
Jason Volk 2019-07-10 02:00:50 -07:00
parent 558428d503
commit 6f4a4f351c

View file

@ -440,11 +440,18 @@ ircd::m::id::id(const enum sigil &sigil,
startswith(local, sigil)?
fmt::sprintf
{
buf, "%s:%s", local, host
buf, "%s%s%s",
local,
host? ":" : "",
host,
}:
fmt::sprintf
{
buf, "%c%s:%s", char(sigil), local, host
buf, "%c%s%s%s",
char(sigil),
local,
host? ":" : "",
host,
}
};