all repos — paprika @ 601d47dc262a9e71610767b4d5fcfa562bc1e702

go rewrite of taigabot

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

601d47dc262a9e71610767b4d5fcfa562bc1e702

parent

1eda21165d7e41e8fcf7a6f86431972b7ab37a75

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) {