- `Config.repl` enables/disables using REPL sockets since it doesn't
make as much sense to configure whether or not it's enabled with the
REPL_ENABLED const
- exports.start takes a filename parametre rather than a prefix and a
suffix one to avoid having to mutate parametres
- dead REPL sockets are removed from the sockets list when the server
emits an error, and the server closes on error now before respawning
the server
- made the file ready for Typescript
These are used within the tournament code, but they aren't documented...
This also changes:
Config#tournamentDefaultPlayerCap -> Config#tourdefaultplayercap
Config#istournamentsrated -> Config#ratedtours
The redirect command actually uses the 'warn' permission, and it seems as though this permission actually isn't a permission of any of the ranks currently.
This is basically a system that allows for room moderators or higher to set a minimum time between a user's messages sent to the room.
This is especially helpful for times the server might be lagging or the chat is just moving much too fast.
Alternatively, this could also help to stop spammers in their tracks and give staff more time to handle them as well.
This was inspired by https://github.com/Zarel/Pokemon-Showdown/pull/2471
We are also removing the github-specific code from /htmlbox as well, removing the modchat alias of * for player, and we are giving room owners and leaders the roombot permission so they can promote to it.
This filters out characters commonly used for impersonation. It's
based on the one used in Main, but now the rest of you can enjoy it
too!
This also filters zalgo and other annoying characters out of pokemon
names as well as usernames.
- Now based entirely on 'editroom'; the 'privateroom' permission is
gone
- New command /publicroom to make a room public
- /privateroom by itself no longer makes a secret room, but now just
displays documentation for /secretroom, /hiddenroom, and /publicroom
The joinbattle privilege has been moved up to driver+/player-only
mostly because apparently a lot of servers have a habit of
promoting untrustworthy people to voice.
Players have been given the /addplayer command to intentionally
allow others to join a battle as a player.
- Fields for `forcetimer` and `reportjoinsperiod` are now available.
- Describe how `showjoins` interacts with client-side commands /showjoins and /hidejoins.
- Setting a `false` value for `reportbattlejoins` is deprecated.
This is a feature requested for tournament servers just as smogtours.
Right now it hides all join and leave reports, including those of the battlers.
By default all servers should have it to true, reporting the battles, added that on the config-example.
Servers that wish to hide joins and leaves on battles must put this configuration to false.
It wasn't getting propagated to socket processes correctly. Also change
the default bind address from 'localhost' to undefined (accept all
connections).