From 62964f02b040eeb49569212bf24367564190d580 Mon Sep 17 00:00:00 2001 From: Taylor Etheredge Date: Tue, 2 Aug 2016 20:58:54 -0500 Subject: [PATCH] update comment on handling error events --- irc_callback.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/irc_callback.go b/irc_callback.go index 330b026..d7ff54e 100644 --- a/irc_callback.go +++ b/irc_callback.go @@ -136,8 +136,7 @@ func (irc *Connection) RunCallbacks(event *Event) { func (irc *Connection) setupCallbacks() { irc.events = make(map[string]map[int]func(*Event)) - //Handle error events. This has to be called in a new thred to allow - //readLoop to exit + //Handle error events. irc.AddCallback("ERROR", func(e *Event) { irc.Disconnect() }) //Handle ping events