From 1e218af790de9b550438001e336ecd30c3241a2a Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Sun, 24 Jan 2016 13:44:46 +0100 Subject: [PATCH] Removed banner prefix from all module ouput. --- modules/rss/rss.go | 6 +++--- modules/sc/sc.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/rss/rss.go b/modules/rss/rss.go index fde7cbc..ebd14fd 100644 --- a/modules/rss/rss.go +++ b/modules/rss/rss.go @@ -47,7 +47,7 @@ func PollFeed(uri string, timeout int, cr xmlx.CharsetFunc) { log.Printf("Polling feed: %s", uri) if err := feed.Fetch(uri, cr); err != nil { log.Printf("[e] %s: %s", "*", uri, err) - sayCh <- fmt.Sprintf("%s\n*** [RSS] Error %s: %s", "*", uri, err) + sayCh <- fmt.Sprintf("%s\n[RSS] Error %s: %s", "*", uri, err) return } <-time.After(time.Duration(feed.SecondsTillUpdate() * 1e9)) @@ -55,7 +55,7 @@ func PollFeed(uri string, timeout int, cr xmlx.CharsetFunc) { } func chanHandler(feed *gorss.Feed, newchannels []*gorss.Channel) { - sayCh <- fmt.Sprintf("%s\n*** [RSS] %d new channel(s) in %s", "*", len(newchannels), feed.Url) + sayCh <- fmt.Sprintf("%s\n[RSS] %d new channel(s) in %s", "*", len(newchannels), feed.Url) } func itemHandler(feed *gorss.Feed, ch *gorss.Channel, newitems []*gorss.Item) { @@ -63,7 +63,7 @@ func itemHandler(feed *gorss.Feed, ch *gorss.Channel, newitems []*gorss.Item) { return } for _, ni := range newitems { - sayCh <- fmt.Sprintf("%s\n*** [RSS] %v - %v", "*", ni.Title, ni.Links[0].Href) + sayCh <- fmt.Sprintf("%s\n[RSS] %v - %v", "*", ni.Title, ni.Links[0].Href) } } diff --git a/modules/sc/sc.go b/modules/sc/sc.go index bd05171..d1f5f10 100644 --- a/modules/sc/sc.go +++ b/modules/sc/sc.go @@ -127,13 +127,13 @@ func scraper() { nextFunds := ((funds / FUNDS_INT) * FUNDS_INT) + FUNDS_INT if curFans >= nextFans { - sayCh <- "*\n*** [SC] Star Citizens: " + util.NumberToString(curFans, '.') + sayCh <- "*\n[SC] Star Citizens: " + util.NumberToString(curFans, '.') } if curFleet >= nextFleet { - sayCh <- "*\n*** [SC] The UEE Fleet: " + util.NumberToString(curFleet, '.') + sayCh <- "*\n[SC] The UEE Fleet: " + util.NumberToString(curFleet, '.') } if curFunds >= nextFunds { - sayCh <- "*\n*** [SC] Funds raised: " + util.NumberToString(curFunds, '.') + sayCh <- "*\n[SC] Funds raised: " + util.NumberToString(curFunds, '.') } fans = curFans