allow triviamods to accept own edits

This commit is contained in:
Gordon Shumway 2018-12-04 04:17:04 -05:00 committed by GitHub
parent 7f0d60faf3
commit b0e0efebf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'])