downstream: always populate downstreamConn.username

This ensures we don't send a prefix without a username in it.
This commit is contained in:
Simon Ser 2022-03-21 16:37:04 +01:00
parent 069625d30d
commit 883683c0b7

View File

@ -336,6 +336,7 @@ func newDownstreamConn(srv *Server, ic ircConn, id uint64) *downstreamConn {
id: id,
nick: "*",
nickCM: "*",
username: "~u",
caps: newCapRegistry(),
monitored: newCasemapMap(0),
registration: new(downstreamRegistration),