diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2016-12-20 23:14:33 +0100 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2016-12-20 23:14:33 +0100 |
commit | 8352e63f1604786e5a37312910a78ef78cfc296d (patch) | |
tree | 71bbe64682d6ac0b5a8cf788e011ebfb63dc5606 | |
parent | d3203ad6128ec64ce5422e7609b71f518bc9a01a (diff) |
Watch news
-rw-r--r-- | main.go | 2 | ||||
-rw-r--r-- | rss.go | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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) { @@ -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 { |