The Studio plugin: update /aotd quote permission

This commit is contained in:
Quinton Lee 2015-11-23 19:26:50 -06:00
parent e6f0fb9760
commit a809b16a24

View File

@ -244,7 +244,7 @@ let commands = {
"\"" + room.chatRoomData.artistQuoteOfTheDay + "\""
);
}
if (!this.can('declare', null, room)) return false;
if (!this.can('ban', null, room)) return false;
if (target === 'off' || target === 'disable' || target === 'reset') {
if (!room.chatRoomData.artistQuoteOfTheDay) return this.sendReply("The Artist Quote of the Day has already been reset.");
delete room.chatRoomData.artistQuoteOfTheDay;