diff --git a/irc.go b/irc.go index b1d7350..88ab7d7 100644 --- a/irc.go +++ b/irc.go @@ -57,7 +57,7 @@ func reader(irc *IRCConnection) { func writer(irc *IRCConnection) { for { - b := strings.Bytes(<-irc.pwrite) + b := []byte(<-irc.pwrite) _, err := irc.socket.Write(b) if err != nil { fmt.Printf("%s\n", err)