summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/lrstanley/girc/event.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-09-07 21:35:45 +0200
committerGitHub <noreply@github.com>2019-09-07 21:35:45 +0200
commit1532f6e42798d1071c8a97423e838338bed7b570 (patch)
tree4ae23c4a5da97e8c1d86a28460340fa2cb5e1c78 /vendor/github.com/lrstanley/girc/event.go
parent9327810bbfe9cf0da2415d223fc642d943ff2ade (diff)
downloadmatterbridge-msglm-1532f6e42798d1071c8a97423e838338bed7b570.tar.gz
matterbridge-msglm-1532f6e42798d1071c8a97423e838338bed7b570.tar.bz2
matterbridge-msglm-1532f6e42798d1071c8a97423e838338bed7b570.zip
Update lrstanley/girc vendor (#884)
Diffstat (limited to 'vendor/github.com/lrstanley/girc/event.go')
-rw-r--r--vendor/github.com/lrstanley/girc/event.go5
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:])