Due to the recent refactor that changed how `this.canTalk` works, if a user was muted in a room, and then tried to do a command that wasn't allowed to be used if they can't talk, it would send two replies: "You are muted and cannot talk in this room." AND "You cannot do this while unable to talk."
This makes it so that if you're using a command while muted that isn't allowed to be used if you can't talk, it will just use the "You are muted and cannot talk in this room." errorReply.
This was requested several times, as a lot of rooms have bots to allow drivers to run tournaments for them.
Note: current room settings for tournaments will not change by default; if you had your room set to allow mods and up before, that will still be the case unless you change it; same for if you had tournaments disabled all together.
This changes the command syntax for `/tournament enable` to be: `/tournament enable [%/@]`. The command syntax for `/tournament disable` has not changed. (disabling a tournament will make it so only # and up can run tournaments.)
This also re-arranges the roomsettings rank order UI for tournaments; it only makes sense that the ranks go in order of power least to greatest (left to right).
We had a lot of discussion in Dev and a somewhat-close poll, but in
the end "Chat" was a better name than "Messages", and also has the
advantage of being shorter (which is nice for Chat.html and
Chat.plural which should be short).
The following functions have been renamed:
- Tools.html to CommandParser.html
- Tools.plural to CommandParser.plural
- Tools.escapeHTML to CommandParser.escapeHTML
- Tools.toDurationString to CommandParser.toDurationString
- Tools.toTimeStamp to CommandParser.toTimestamp
(notice the lowercase 's')
This is in preparation for a rename of Tools to Dex (by removing the
non-dex-related functions) and a rename of CommandParser to either
Messages or Chat.
The main reason I think this should be added is that a lot of people don't know this command, and so having it in the roomsettings should make it better-known to the relevant users that it's actually a thing.
/inviteonly is a simplified interface for /modjoin, with only two
options:
- /inviteonly on = /modjoin +
- /inviteonly off = /modjoin off
This should make it clearer exactly what modjoin is used for.
There's also a new shortcut command:
- /ioo = /inviteonly on
which should be useful to players who frequently need maximum security.
Modjoin also no longer triggers modchat, if you use modjoin settings
other than sync.
Room setting commands, including /modchat and also /capsfilter, are now
set in chat-plugins/roomsettings.js.
/capitals has been renamed /capsfilter
/stretching has been renamed /stretchfilter
The /roomsettings UI has been redesigned.
This command allows for all users to use /roomsettings. If the user can actually change some of those settings, then they will have a button to do so; if not, it will tell them what the current settings are set to, though.