Uphold echo-message even with BouncerServ
Fixes <https://todo.sr.ht/~emersion/soju/74>
This commit is contained in:
parent
473a0f018b
commit
cab0fc2b7d
@ -1568,6 +1568,16 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
|
|||||||
|
|
||||||
for _, name := range strings.Split(targetsStr, ",") {
|
for _, name := range strings.Split(targetsStr, ",") {
|
||||||
if name == serviceNick {
|
if name == serviceNick {
|
||||||
|
if dc.caps["echo-message"] {
|
||||||
|
echoTags := tags.Copy()
|
||||||
|
echoTags["time"] = irc.TagValue(time.Now().UTC().Format(serverTimeLayout))
|
||||||
|
dc.SendMessage(&irc.Message{
|
||||||
|
Tags: echoTags,
|
||||||
|
Prefix: dc.prefix(),
|
||||||
|
Command: "PRIVMSG",
|
||||||
|
Params: []string{name, text},
|
||||||
|
})
|
||||||
|
}
|
||||||
handleServicePRIVMSG(dc, text)
|
handleServicePRIVMSG(dc, text)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user