From cff94dc8d8dba8e37469a398909944872929061c Mon Sep 17 00:00:00 2001 From: Jeff Date: Thu, 20 Apr 2017 18:07:07 -0400 Subject: [PATCH] fug --- contrib/backends/srndv2/src/srnd/mod.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/contrib/backends/srndv2/src/srnd/mod.go b/contrib/backends/srndv2/src/srnd/mod.go index 6b5fec5..2f77a1b 100644 --- a/contrib/backends/srndv2/src/srnd/mod.go +++ b/contrib/backends/srndv2/src/srnd/mod.go @@ -51,7 +51,7 @@ type ModUI interface { type ModAction string const ModInetBan = ModAction("overchan-inet-ban") -const ModDelete = ModAction("overchan-delete") +const ModDelete = ModAction("delete") const ModRemoveAttachment = ModAction("overchan-del-attachment") const ModStick = ModAction("overchan-stick") const ModLock = ModAction("overchan-lock") @@ -81,7 +81,14 @@ func (self simpleModEvent) String() string { } func (self simpleModEvent) Action() ModAction { - return ModAction(strings.Split(string(self), " ")[0]) + switch strings.Split(string(self), " ")[0] { + case "delete": + return ModDelete + + case "overchan-inet-ban": + return ModInetBan + } + return "" } func (self simpleModEvent) Reason() string {