From f13d7066868a138567f23b0b14126725c10b84d3 Mon Sep 17 00:00:00 2001 From: tj Date: Fri, 6 Aug 2010 12:49:56 +0200 Subject: [PATCH] Correct splitting of event codes --- irc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc.go b/irc.go index 88ab7d7..981598e 100644 --- a/irc.go +++ b/irc.go @@ -46,7 +46,7 @@ func reader(irc *IRCConnection) { if len(args) > 1 { event.Message = args[1] } - args = strings.Split(args[0], " ", 0) + args = strings.Split(args[0], " ", -1) event.Code = strings.ToUpper(args[0]) if len(args) > 1 { event.Arguments = args[1:len(args)]