Correct splitting of event codes
This commit is contained in:
parent
a557416dcf
commit
f13d706686
2
irc.go
2
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)]
|
||||
|
Loading…
Reference in New Issue
Block a user