Added the random team selection for the new Seasonal ladder for
February Valentine Venture (randomSeasonalVVTeam).
It's a doubles ladder that chooses three couples for each player.
Safeguard was failing to block Confusion because the Confusion
`onStart` function did not pass a `target` and `source` to `runEvent`
when invoking the `TryConfusion` event, and Safeguard's
`onTryConfusion` function requires that a `target` and `source` be
specified.
This flag indicates that the client should not provide the option
to choose a new name, because all names will fail, rather than just
the one specified.
The new default is that the hostname contained in the first assertion
sent to the server will be accepted, and it (and the corresponding IP
address, if it is a domain name) will be added to tokenhosts.
In addition, I have also added a better error message in the case of
an invalid token hostname, which should point users to the relevant
documentation.
I also have changed the default to localhost only. However, servers
which leave `exports.tokenhosts` undefined will continue to accept
all hostnames in assertions, so this commit will not break existing
servers that pull it.
This commit requires the client to present its signed assertion from
the login server to the Pokemon Showdown server within one minute
after it was generated, rather than the previous allowance of two
days. A new signed assertion is generated for each action that
requires one, so this 60 second window is actually quite generous.
Previously, access to /disableladder and /enableladder was controlled
by the `modchat` permission, which is available to the @, &, and ~
groups by default. However, /disableladder is a very disruptive command
and it is totally unlike modchat, so it is now governed by its own
permission, which is given to the & and ~ groups by default.
As of @a475ea5901, a basePower of `false` is a special value that
denotes that the move should always fail (unless modified). This
change broke 62 moves that currently use a basePower of `false` when
they appear to intend a basePower of 0. This commit changes the
basePower of these moves to 0.
Previously, /help ~ displayed the following message:
The command "/~" was not found. Try /help for general help
This bug was caused by a missing 'matched = true;' statement,
which has now been added.