Re-order the Doubles formats so they are ordered in the same
fashion as the Singles metagames.
First of all, Random Battle, which will be available soon.
Then, the Smogon officially endorsed Doubles metagame.
Then, Nintendos Doubles metagame VGC '13.
Then, Custom Game and last but not least Challenge Cup.
The PM blocking tool is available for all regular users and admins.
Regular users can use it as a global ignore rule, allowing them to
avoid harassers that are able to ban, mute, or ignore evade and PM
spam them.
Administrators are often bombarded with PMs and often they don't have
the time nor the means to entertain them, so this tool allows them
to work or just use the simulator in peace. Generally, administrators
are not required to be available to all PMs as the rest of the members
of staff, whom are not allowed to use this tool, are.
Improve the default team when there's a repeated Pokémon so
players aren't in disadvantage due to a system flaw.
Also use a better way to not to repeat Pokémon formes.
In Gen 2,moves with negative priority work with negative speed.
It's the slower phazing move that will work first.
To achieve this, gen 2 runs its own compare priority and the functions
which use this one are edited so they use the custom compare priority.
This fixes a bug that allows any user with `forcerenameto` permission
(which by default includes the entire ~ group) to escalate to console
permissions, which is much more powerful.
Suppose user "Jasmine" has the ~ group, but not console permissions and
suppose user "Zarel" is on the console list on config.js. Jasmine could
escalate to console permissions with these commands:
/frt Jasmine, Zarel
/trn Zarel
The use of the /trn command sets her User object's `forceRenamed`
property to false, allowing the console userid check to pass.
This bug meant that the attack surface area to completely take over the
sim server was as large as the ~ group, not just the list of console
users. This commit fixes the bug by correctly propagating the
`forceRenamed` property when using /trn.