diff options
Diffstat (limited to 'vendor/github.com/lrstanley/girc/event.go')
-rw-r--r-- | vendor/github.com/lrstanley/girc/event.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/github.com/lrstanley/girc/event.go b/vendor/github.com/lrstanley/girc/event.go index d9d22f26..ef4633f7 100644 --- a/vendor/github.com/lrstanley/girc/event.go +++ b/vendor/github.com/lrstanley/girc/event.go @@ -49,6 +49,7 @@ func ParseEvent(raw string) (e *Event) { } } raw = raw[i+1:] + i = 0 } if raw[0] == messagePrefix { @@ -91,7 +92,7 @@ func ParseEvent(raw string) (e *Event) { if trailerIndex == -1 { // No trailing argument found, assume the rest is just params. - e.Params = strings.Split(raw[j:], string(eventSpace)) + e.Params = strings.Fields(raw[j:]) return e } @@ -114,7 +115,7 @@ func ParseEvent(raw string) (e *Event) { // Check if we need to parse arguments. If so, take everything after the // command, and right before the trailing prefix, and cut it up. if i > j { - e.Params = strings.Split(raw[j:i-1], string(eventSpace)) + e.Params = strings.Fields(raw[j : i-1]) } e.Params = append(e.Params, raw[i+1:]) |