update comment on handling error events
This commit is contained in:
@@ -136,8 +136,7 @@ func (irc *Connection) RunCallbacks(event *Event) {
|
|||||||
func (irc *Connection) setupCallbacks() {
|
func (irc *Connection) setupCallbacks() {
|
||||||
irc.events = make(map[string]map[int]func(*Event))
|
irc.events = make(map[string]map[int]func(*Event))
|
||||||
|
|
||||||
//Handle error events. This has to be called in a new thred to allow
|
//Handle error events.
|
||||||
//readLoop to exit
|
|
||||||
irc.AddCallback("ERROR", func(e *Event) { irc.Disconnect() })
|
irc.AddCallback("ERROR", func(e *Event) { irc.Disconnect() })
|
||||||
|
|
||||||
//Handle ping events
|
//Handle ping events
|
||||||
|
|||||||
Reference in New Issue
Block a user