From 036cc4c3ebe0efbd05c2e65c2c59a81991f8ee81 Mon Sep 17 00:00:00 2001 From: raylu Date: Fri, 15 Oct 2010 18:06:51 -0400 Subject: [PATCH] Fix a bug that prevented adding multiple handlers --- irc/handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/irc/handlers.go b/irc/handlers.go index 480bf9a..713ee12 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -34,6 +34,7 @@ func (conn *Conn) AddHandler(name string, f func(*Conn, *Line)) { } e = e[0 : len(e)+1] e[len(e)-1] = f + conn.events[n] = e } else { e := make([]func(*Conn, *Line), 1, 10) e[0] = f