mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
The Studio plugin: update /aotd quote permission
This commit is contained in:
parent
e6f0fb9760
commit
a809b16a24
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user