From b0e0efebf94d516118a13b50d602a7fa4076bfb1 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Tue, 4 Dec 2018 04:17:04 -0500 Subject: [PATCH] allow triviamods to accept own edits --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 377ee4f..e368e0d 100644 --- a/plugin.py +++ b/plugin.py @@ -3149,7 +3149,7 @@ class TriviaTime(callbacks.Plugin): edit = threadStorage.getEditById(num, channel) if edit: - if username == edit['username']: + if username == edit['username'] and self.isTriviaMod(hostmask, channel) == False: irc.reply('You cannot accept your own edit.') else: question = threadStorage.getQuestionById(edit['question_id'])