diff --git a/irc.go b/irc.go index 2541f0d..91aa966 100644 --- a/irc.go +++ b/irc.go @@ -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 {