mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd:Ⓜ️🆔 Allow empty host in rewrite constructor.
This commit is contained in:
parent
558428d503
commit
6f4a4f351c
1 changed files with 9 additions and 2 deletions
11
ircd/m_id.cc
11
ircd/m_id.cc
|
@ -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,
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue