Commit Graph

29 Commits

Author SHA1 Message Date
Lionyx
848fcd2c2b Roomsettings: Change variable spelling (#2935)
minor syntaxic change "atuh" → "auth"
2016-11-22 17:01:25 -06:00
panpawn
f87a137e96 Roomsettings: Fix a couple of bugs (#2900)
These were just a few typos that messed up roomsettings a little bit.
2016-11-18 01:07:15 -05:00
Ivo Julca
4fa6c5499b Build: Fix issues reported by the latest Eslint version 2016-11-17 14:27:39 -05:00
panpawn
1db95501b6 Slowchat: Add a bypassall check for min user req (#2892) 2016-11-15 23:14:43 -06:00
panpawn
56f63700d3 Roomsettings: Change way of generating button HTML (#2890)
This removes a lot of repeated HTML and also makes it more readable
2016-11-13 18:46:27 -08:00
panpawn
5912b2b512 Give drivers access to /banword list (#2845)
It doesn't make sense to me that drivers have access to /showbl but not for /banword list
2016-10-18 13:31:24 +02:00
HoeenCoder
0d867de0d2 Fix incorrect wording in modjoin (#2843) 2016-10-14 23:12:30 -04:00
panpawn
76285471a0 Fix double errorReply while muted in some cases (#2830)
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.
2016-10-08 20:58:16 -07:00
panpawn
dd8fcf6d7c Roomsettings: Don't use 'true' in UI (#2828)
This makes it more consistent with the rest of the UI, specifically for the respected changes of filtering capitals / stretching.
2016-10-06 21:49:13 -07:00
panpawn
8744e94a2d Tournaments: Allow ROs to allow % and up to run tours (#2826)
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).
2016-10-06 00:49:53 -07:00
Guangcong Luo
d6f5404e7e Rename CommandParser to Chat
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).
2016-09-30 18:31:15 -07:00
Guangcong Luo
da1b318707 Move text processing from Tools to CommandParser
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.
2016-09-30 18:04:13 -07:00
Guangcong Luo
c9bf56f6ea Refactor roomsettings to use this.parse 2016-09-28 22:13:07 -07:00
panpawn
9accadc3f9 Roomsettings: Make tour settings consistent (#2788)
b9e33af1c0 (diff-97371680ff383ff965897845c2fb6bf3R113) didn't update all cases of the tour settings
2016-09-27 20:41:18 +04:00
The Immortal
b9e33af1c0 Roomsettings: Update Tournament settings
- Fix the setting: it showed driver instead of mod
- Use auth symbols to be consistent with modchat and modjoin settings
2016-09-27 19:57:42 +04:00
panpawn
376dcce76d Roomsettings: Use button class for tour setting (#2783)
This update timing kind of got messed up with the timing of using button class buttons in roomsettings.
2016-09-25 20:40:51 -07:00
Guangcong Luo
5a4a2ec85f Clarify tours setting in /roomsettings 2016-09-24 23:14:16 -07:00
panpawn
5a6fc4b33d Roomsettings: Add enabling/disabling tournaments (#2765)
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.
2016-09-24 15:20:27 -07:00
panpawn
2c931569cd Fix typo in /slowchat (#2779)
When this was converted to use template strings, this happened
2016-09-24 12:36:24 -07:00
panpawn
30050d6c91 Roomsettings: Use 'button' class in UI (#2767) 2016-09-24 12:34:50 -07:00
Guangcong Luo
fc5dc319c1 Better feedback for /inviteonly
It once again displays a big red message, but this time, the big red
message is clearer.
2016-09-17 02:13:24 -07:00
Guangcong Luo
affa4c48f4 Introduce /inviteonly
/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.
2016-09-17 01:42:39 -07:00
Guangcong Luo
ad7301f838 Allow /modjoin + in battles 2016-09-17 04:29:45 -04:00
Guangcong Luo
51db68fba5 Move banword to roomsettings 2016-09-15 06:10:54 -07:00
panpawn
0151a7355a Roomsettings: Standardize 'off' in UI (#2743)
I believe these few instances were left out from 505d68923b
2016-09-13 16:34:57 +02:00
Guangcong Luo
505d68923b Refactor/redesign roomsettings
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.
2016-09-10 05:54:24 -05:00
panpawn
bbe17f7316 Refactor command-parser checkFormat function (#2687)
(Also, let's fix /stretching and /capitals help commands while we're at it)
((...And a few typos in the roomsettings plugin...))
2016-08-10 15:15:32 -05:00
panpawn
958c551153 Roomsettings: Update help command (#2680)
Fix a typo, and remove old required ranks.
2016-08-08 18:53:33 -05:00
panpawn
480d5914b9 Implement /roomsettings plugin (#2662)
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.
2016-08-08 16:24:13 -05:00