commit | 547dde5ba34a852acac20af51e599ff89650560e | [log] [tgz] |
---|---|---|
author | James Mills <prologic@shortcircuit.net.au> | Sun Nov 12 21:45:29 2017 |
committer | James Mills <prologic@shortcircuit.net.au> | Mon Nov 13 02:53:49 2017 |
tree | 2be83421d98cc19c802686503399e38f5a3e1ff9 | |
parent | 656226dc22874dcb7ad22082584e5a5c4963b054 [diff] |
Do not Disconnect() on ERROR events (e.g: KILL).
diff --git a/irc_callback.go b/irc_callback.go index 0c98947..15e7191 100644 --- a/irc_callback.go +++ b/irc_callback.go
@@ -158,9 +158,6 @@ func (irc *Connection) setupCallbacks() { irc.events = make(map[string]map[int]func(*Event)) - //Handle error events. - irc.AddCallback("ERROR", func(e *Event) { irc.Disconnect() }) - //Handle ping events irc.AddCallback("PING", func(e *Event) { irc.SendRaw("PONG :" + e.Message()) })