Send back TAGMSGs to self

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

View File

@ -2048,6 +2048,16 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
tags := copyClientTags(msg.Tags)
for _, name := range strings.Split(targetsStr, ",") {
if dc.network == nil && casemapASCII(name) == dc.nickCM {
dc.SendMessage(&irc.Message{
Tags: msg.Tags.Copy(),
Prefix: dc.prefix(),
Command: "TAGMSG",
Params: []string{name},
})
continue
}
if casemapASCII(name) == serviceNickCM {
continue
}