From a557416dcf10e07b03b40cd3bad886de6ec40e9b Mon Sep 17 00:00:00 2001 From: tj Date: Fri, 12 Mar 2010 21:55:56 +0100 Subject: [PATCH] Better parameter order for ReplaceCallback --- irc_callback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc_callback.go b/irc_callback.go index f0bbca4..d8d7d00 100644 --- a/irc_callback.go +++ b/irc_callback.go @@ -21,7 +21,7 @@ func (irc *IRCConnection) AddCallback(eventcode string, callback func(*IRCEvent) } } -func (irc *IRCConnection) ReplaceCallback(i uint8, eventcode string, callback func(*IRCEvent)) { +func (irc *IRCConnection) ReplaceCallback(eventcode string, i uint8, callback func(*IRCEvent)) { eventcode = strings.ToUpper(eventcode) if event, ok := irc.events[eventcode]; ok { event[i] = callback