gruik

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

commit 600f0c1eb1fc25636a01121b47b1b8ee2d3ce168
parent 712931d77ee49e16d0ef7335f062a6df099ae038
Author: Emile 'iMil' Heitor <imil@NetBSD.org>
Date:   Tue, 18 Jul 2023 19:58:06 +0200

fix: reset color is r

Diffstat:
Mmain.go | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/main.go b/main.go @@ -68,11 +68,11 @@ func getNewsByOrigin(origin string) []News { } func fmtNews(news News) string { - colorReset := girc.Fmt("{c}") + colorReset := girc.Fmt("{r}") colorOrigin := girc.Fmt(fmt.Sprintf("{%s}", viper.GetString("irc.colors.origin"))) - colorTitle := girc.Fmt(fmt.Sprintf("{%s}", viper.GetString("irc.colors.title"))) - colorLink := girc.Fmt(fmt.Sprintf("{%s}", viper.GetString("irc.colors.link"))) - colorHash := girc.Fmt(fmt.Sprintf("{%s}", viper.GetString("irc.colors.hash"))) + colorTitle := girc.Fmt(fmt.Sprintf("{%s}", viper.GetString("irc.colors.title"))) + colorLink := girc.Fmt(fmt.Sprintf("{%s}", viper.GetString("irc.colors.link"))) + colorHash := girc.Fmt(fmt.Sprintf("{%s}", viper.GetString("irc.colors.hash"))) return fmt.Sprintf("[%s%s%s] %s%s%s %s%s%s %s#%s%s", colorOrigin, news.Origin, colorReset, @@ -336,9 +336,8 @@ func main() { } } - // All commands below requires OP - if ! isOp(e.Source.Name) { + if !isOp(e.Source.Name) { return }