Added IRC network naming, added some convenience getters to the stores
This commit is contained in:
parent
1c30da5474
commit
eec82a7dd9
14 changed files with 73 additions and 33 deletions
4
irc.go
4
irc.go
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue