Placeholder message dispatcher.

configurable-file-paths
Robert Gerus 2015-10-20 11:06:58 +02:00
parent 1da17d95d5
commit 67dae458a5
1 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,13 @@ func (c Connection) Receiver() {
}
}
func (c Connection) Dispatcher() {
for {
// just sink everything for now
<-c.Output
}
}
func (c Connection) Dial(server string, nick string, user string, realname string) error {
conn, err := net.Dial("tcp", server)
@ -74,6 +81,7 @@ func (c Connection) Dial(server string, nick string, user string, realname strin
go c.Sender()
go c.Receiver()
go c.Dispatcher()
log.Println(c.Network, "Initializing IRC connection")
c.Input <- Message{