forked from an/flokati
Make rss module less chatty.
This commit is contained in:
parent
4dcacaec15
commit
7f79bc154c
2
main.go
2
main.go
|
@ -140,6 +140,6 @@ func HandleMessage(m *irc.Message) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func SoftwareInfo() string {
|
func SoftwareInfo() string {
|
||||||
return fmt.Sprintf("flokatirc %s-%s (built %s [%])", version.FlokatiVersion,
|
return fmt.Sprintf("flokatirc %s-%s (built %s [%s])", version.FlokatiVersion,
|
||||||
version.FlokatiBuild, version.FlokatiBuilddate, runtime.Version())
|
version.FlokatiBuild, version.FlokatiBuilddate, runtime.Version())
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@ func rssPollFeed(uri string, timeout int, cr xmlx.CharsetFunc) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func rssChanHandler(feed *gorss.Feed, newchannels []*gorss.Channel) {
|
func rssChanHandler(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 rssItemHandler(feed *gorss.Feed, ch *gorss.Channel, newitems []*gorss.Item) {
|
func rssItemHandler(feed *gorss.Feed, ch *gorss.Channel, newitems []*gorss.Item) {
|
||||||
|
|
Loading…
Reference in New Issue