summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-12-20 23:14:33 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-12-20 23:14:33 +0100
commit8352e63f1604786e5a37312910a78ef78cfc296d (patch)
tree71bbe64682d6ac0b5a8cf788e011ebfb63dc5606
parentd3203ad6128ec64ce5422e7609b71f518bc9a01a (diff)
Watch news
-rw-r--r--main.go2
-rw-r--r--rss.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 1abe5e1..0ca82c3 100644
--- a/main.go
+++ b/main.go
@@ -23,7 +23,7 @@ func main() {
c.HandleFunc(irc.CONNECTED, func(conn *irc.Conn, line *irc.Line) {
conn.Join(*room)
- go ShowNews(conn, *room)
+ go WatchNews(conn, *room)
})
c.HandleFunc(irc.KICK, func(conn *irc.Conn, line *irc.Line) {
diff --git a/rss.go b/rss.go
index 1d9d9db..f79efe7 100644
--- a/rss.go
+++ b/rss.go
@@ -107,7 +107,7 @@ func (f Feed) Watch(news chan News) {
}
}
-func ShowNews(conn *irc.Conn, room string) {
+func WatchNews(conn *irc.Conn, room string) {
news := make(chan News)
for _, f := range Feeds {