From ab0a5fdae2fafa80d96bc8e5067f4f7508ee2f08 Mon Sep 17 00:00:00 2001 From: Morfent Date: Wed, 28 Jan 2015 17:34:46 -0400 Subject: [PATCH] Trivia plugin: actually fix /trivia add permissions --- chat-plugins/trivia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat-plugins/trivia.js b/chat-plugins/trivia.js index a8212ba992..ca48e91ba4 100644 --- a/chat-plugins/trivia.js +++ b/chat-plugins/trivia.js @@ -411,7 +411,7 @@ var commands = { // question database modifying commands submit: 'add', add: function (target, room, user, connection, cmd) { - if (room.id !== 'questionworkshop' || (cmd === 'triviaadd' && !this.can('mute', null, room)) || !target) return false; + if (room.id !== 'questionworkshop' || (cmd === 'add' && !this.can('mute', null, room)) || !target) return false; target = target.split('|'); if (target.length !== 3) return this.sendReply('Invalid arguments specified. View /trivia help qcommands for more information.');