all repos — paprika @ 9b5a81ff5986713c6a166ff5888061162c2bc1e9

go rewrite of taigabot

Fix messages not sending as NOTICEs
Anirudh Oppiliappan x@icyphox.sh
Tue, 28 Dec 2021 21:02:56 +0530
commit

9b5a81ff5986713c6a166ff5888061162c2bc1e9

parent

e5be63c2103be2048500acac3e2966e5a57ccf8f

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M main.gomain.go

@@ -27,15 +27,15 @@ if errors.Is(err, plugins.IsNotice) {

err = nil cmd = "NOTICE" } - msg := irc.Message{Command: cmd} + target := m.Params[0] - if serr, ok := err.(*plugins.IsPrivateNotice); ok { target = serr.To cmd = "NOTICE" err = nil } + msg := irc.Message{Command: cmd} split := strings.Split(response, "\n") if errors.Is(err, plugins.IsRaw) {