Correctly send back PRIVMSGs and NOTICEs to self

This commit is contained in:
Hubert Hirtz 2021-10-09 12:46:02 +02:00 committed by Simon Ser
parent d4b7bb02da
commit 3a171607e0
1 changed files with 6 additions and 1 deletions

View File

@ -1984,7 +1984,12 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
}
if dc.network == nil && casemapASCII(name) == dc.nickCM {
dc.SendMessage(msg)
dc.SendMessage(&irc.Message{
Tags: msg.Tags.Copy(),
Prefix: dc.prefix(),
Command: msg.Command,
Params: []string{name, text},
})
continue
}