gruik

Fork of GCU-Squad's RSS-to-IRC bridge
git clone https://git.instinctive.eu/gruik.git
Log | Files | Refs | README | LICENSE

commit a6e5581aea2a02962856d4b4772afeb980161dc6
parent 67b9e15c6550fcd4ed37ab3c2de3745ed60c2455
Author: Emile 'iMil' Heitor <imil@NetBSD.org>
Date:   Fri, 14 Jul 2023 10:16:09 +0200

fix: don't xpost from an xchannel

Diffstat:
Mmain.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.go b/main.go @@ -303,7 +303,7 @@ func main() { c.Cmd.ReplyTo(e, girc.Fmt("removing feed {b}{red}failed{c}{b}")) } } - if strings.HasPrefix(e.Last(), "!xpost") { + if strings.HasPrefix(e.Last(), "!xpost") && e.Params[0] == channel { s := getParam(e.Last()) if s == "" { return