From 883683c0b780ae55a701413ff5ee2164409d170b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 21 Mar 2022 16:37:04 +0100 Subject: [PATCH] downstream: always populate downstreamConn.username This ensures we don't send a prefix without a username in it. --- downstream.go | 1 + 1 file changed, 1 insertion(+) diff --git a/downstream.go b/downstream.go index 888ee20..2598150 100644 --- a/downstream.go +++ b/downstream.go @@ -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),