Fix Formats and Send error to main goroutine on Disconnect

This commit is contained in:
Thomas Jager 2014-02-12 08:42:10 +01:00
parent 9bdf790e25
commit 95288a16c5

2
irc.go
View File

@ -13,6 +13,7 @@ import (
"os"
"strings"
"time"
"errors"
)
const (
@ -232,6 +233,7 @@ func (irc *Connection) Disconnect() {
irc.netsock.Close()
irc.netsock = nil
}
irc.Error <- errors.New("Disconnect Called")
}
func (irc *Connection) Reconnect() error {