From aca6a0dfa4358da7b1c3d589c35f9b24a1d479d5 Mon Sep 17 00:00:00 2001 From: Jeff Date: Thu, 20 Apr 2017 17:47:33 -0400 Subject: [PATCH] fix --- contrib/backends/srndv2/src/srnd/mod.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 {