From 547dde5ba34a852acac20af51e599ff89650560e Mon Sep 17 00:00:00 2001 From: James Mills Date: Sun, 12 Nov 2017 13:45:29 -0800 Subject: [PATCH] Do not Disconnect() on ERROR events (e.g: KILL). --- irc_callback.go | 3 --- 1 file changed, 3 deletions(-) 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) RunCallbacks(event *Event) { 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()) })