Removed banner prefix from all module ouput.
This commit is contained in:
parent
0b07b44aea
commit
1e218af790
2 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue