From f7bd5a8eb426e838199d0adfdaf32f080c3ee9ee Mon Sep 17 00:00:00 2001 From: cws Date: Wed, 7 Jun 2017 14:51:26 -0400 Subject: [PATCH] fact: remove owner check from edit --- plugins/fact/factoid.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugins/fact/factoid.go b/plugins/fact/factoid.go index e9e8e1a..b7b4331 100644 --- a/plugins/fact/factoid.go +++ b/plugins/fact/factoid.go @@ -476,13 +476,6 @@ func (p *Factoid) changeFact(message msg.Message) bool { if err != nil { log.Println("Error getting facts: ", trigger, err) } - if !(message.User.Admin && userexp[len(userexp)-1] == 'g') { - result = result[:1] - if result[0].Owner != message.User.Name && !message.User.Admin { - p.Bot.SendMessage(message.Channel, "That's not your fact to edit.") - return true - } - } // make the changes msg := fmt.Sprintf("Changing %d facts.", len(result)) p.Bot.SendMessage(message.Channel, msg)