mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-05 20:44:04 +00:00
Update lrstanley/girc vendor (#884)
This commit is contained in:
5
vendor/github.com/lrstanley/girc/event.go
generated
vendored
5
vendor/github.com/lrstanley/girc/event.go
generated
vendored
@ -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:])
|
||||
|
Reference in New Issue
Block a user