diff --git a/contrib/backends/srndv2/src/srnd/mod.go b/contrib/backends/srndv2/src/srnd/mod.go index c22a164..da576f7 100644 --- a/contrib/backends/srndv2/src/srnd/mod.go +++ b/contrib/backends/srndv2/src/srnd/mod.go @@ -89,7 +89,11 @@ func (self simpleModEvent) Reason() string { } func (self simpleModEvent) Target() string { - return strings.Split(string(self), " ")[1] + parts := strings.Split(string(self), " ") + if len(parts) > 1 { + return parts[1] + } + return "" } func (self simpleModEvent) Scope() string {