Added IRC network naming, added some convenience getters to the stores

This commit is contained in:
khlieng 2015-02-02 01:54:26 +01:00
parent 1c30da5474
commit eec82a7dd9
14 changed files with 73 additions and 33 deletions

4
irc.go
View file

@ -179,7 +179,7 @@ func (i *IRC) Writef(format string, a ...interface{}) {
}
func (i *IRC) write(data string) {
fmt.Fprint(i.conn, data+"\r\n")
i.conn.Write([]byte(data + "\r\n"))
}
func (i *IRC) writef(format string, a ...interface{}) {
@ -189,7 +189,7 @@ func (i *IRC) writef(format string, a ...interface{}) {
func (i *IRC) send() {
i.ready.Wait()
for message := range i.out {
fmt.Fprint(i.conn, message)
i.conn.Write([]byte(message))
}
}