Correct splitting of event codes

This commit is contained in:
tj 2010-08-06 12:49:56 +02:00
parent a557416dcf
commit f13d706686

2
irc.go
View File

@ -46,7 +46,7 @@ func reader(irc *IRCConnection) {
if len(args) > 1 { if len(args) > 1 {
event.Message = args[1] event.Message = args[1]
} }
args = strings.Split(args[0], " ", 0) args = strings.Split(args[0], " ", -1)
event.Code = strings.ToUpper(args[0]) event.Code = strings.ToUpper(args[0])
if len(args) > 1 { if len(args) > 1 {
event.Arguments = args[1:len(args)] event.Arguments = args[1:len(args)]