Mia
f949f9ba66
Chat-monitor: Use new spoiler format instead of SPOILER:
...
Mentioned in Staff, slightly cleaner.
2021-05-06 13:21:54 -05:00
Annika
2837f9dc26
Handle undefined reason in monitorRoomPunishments
2021-05-06 10:17:36 -07:00
Guangcong Luo
11a6902154
Force rebuild when using /rebuild
2021-05-06 01:36:34 -07:00
Guangcong Luo
55980d416c
Support value rules ( #8267 )
...
`teamLength`, `maxLevel`, `cupLevelLimit`, and `minSourceGen` no longer
exist as properties of `Format`. Instead, they're value rules that
become properties of `RuleTable`, and can be specified as custom rules
and inherited through rulesets like anything else.
See the PR for a full reckoning of changes:
https://github.com/smogon/pokemon-showdown/pull/8267
2021-05-06 01:16:16 -07:00
Mia
64b3b554c2
Usersearch: Add namelock buttons
...
Requested by staff, approved by Ransei.
2021-05-05 16:24:01 -05:00
Mia
a5d3aaee35
Helptickets: Don't display language if set to English in /ht list
2021-05-05 14:27:09 -05:00
Mia
5fb8071274
Info: Fix /regtime time handling
2021-05-05 12:04:25 -05:00
Guangcong Luo
574bb28bbe
Implement Utils.Multiset ( #8260 )
...
If you grep the codebase for `|| 0) + 1` you get a lot of results,
all of which would be better implemented with a multiset.
2021-05-04 21:53:23 -07:00
Kris Johnson
70a06de929
PunishmentMonitor: Fix "(banned: )" in autolocks ( #8256 )
2021-05-04 21:50:04 -07:00
Annika
a150b4aa6c
Fix help for /host
2021-05-05 00:18:23 -04:00
Mia
5f21bc1d9d
Helptickets: Update language display in /ht list
...
Staff preferred this, from opinions given when it went live.
2021-05-04 20:54:58 -05:00
Annika
2df7307ca2
Helptickets: Display language in ticket list
2021-05-03 10:35:37 -07:00
Mia
abcf367181
Admin: Respawn Dexsearch processes in formats hotpatch
2021-05-03 11:41:49 -05:00
Mia
a20f2ebdf2
Helptickets: Add the alias /ht tb to /ht ban
...
Requested by a few staff
2021-05-03 10:45:46 -05:00
Annika
f6b21b90ce
Trivia: Support games with fewer than 3 players
...
Requested by Trivia roomstaff
2021-05-02 21:36:22 -07:00
Annika
38f16f2097
Trivia: Add a button for signups
2021-05-02 21:34:50 -07:00
Quinton Lee
51e005e65d
Implement /closehtmlpage ( #8253 )
2021-05-02 13:42:46 -07:00
Annika
dd6fb52079
/lock: Fix reason parsing
2021-05-01 21:19:09 -07:00
Kris Johnson
5331e0e748
Refactor splitTarget to splitUser ( #8246 )
2021-05-01 00:42:25 -07:00
Guangcong Luo
e450e8082e
Fix bug in requireUser refactor
2021-04-30 18:32:43 -07:00
Guangcong Luo
a480a84ce4
Chat API: Add requireUser
...
This simplifies a lot of `splitUser` uses that immediately go on
to make sure the user actually exists.
2021-04-30 17:14:35 -07:00
Guangcong Luo
0230a002fd
Make bot attribution stricter
...
Admins should not be using `addhtml` commands for jokes. This makes
it so only gbots get access to unattributed `addhtml`.
2021-04-30 17:14:35 -07:00
Mia
1b0bcc9000
Usersearch: Remove extraneous linebreaks when there are no online matches
2021-04-29 09:56:20 -05:00
Mia
721e7bc8a2
Remove /makegroupchat from /commands
...
Regs can't use it now, so it doesn't need to be here
2021-04-29 09:48:11 -05:00
Guangcong Luo
d80319d114
Implement /botmsg ( #8240 )
2021-04-29 00:54:57 -07:00
Guangcong Luo
17ca6b271c
Add a bit more documentation for plines
2021-04-28 01:53:03 -07:00
Guangcong Luo
09d2b9c514
Deprecate splitTarget with splitUser
...
(Note that the `splitUser` API isn't stable yet, and a future update
will determine if we want to call the final output `message` or
`rest`.)
2021-04-28 01:45:56 -07:00
Guangcong Luo
d9c564d15c
Add hint for locked users challenging unlocked
2021-04-27 22:34:52 -07:00
Mia
24ac3cfc40
Fix crash in /effectiveness
2021-04-27 21:32:10 -05:00
Guangcong Luo
9abbe47531
Support setting a default format/mod for commands in rooms ( #8237 )
2021-04-27 15:38:51 -07:00
urkerab
d4662c4c04
Handle extraneous parentheses again ( #8238 )
2021-04-27 15:06:51 -07:00
Annika
4bbb809c7b
Mastermind: Fix sorting in getTopPlayers
2021-04-27 09:09:37 -07:00
Guangcong Luo
ddd96995a1
Fix crash report display
...
Fixes #8234
2021-04-26 22:30:02 -04:00
urkerab
74ed6a3651
/math: Give the negative operator a precedence ( #8235 )
2021-04-26 18:53:32 -07:00
Annika
8ee9a68067
RoomBattle: Properly handle legacy config format
...
#8214 added code to handle Config.forcedpublicprefixes and convert it to Config.forcedprefixes, but it was buggy.
2021-04-25 22:03:08 -07:00
Quinton Lee
6079927a95
Commands: Support sending |selectorhtml| to bot HTML pages ( #8228 )
2021-04-25 20:20:57 -07:00
Mia
ea6f6a81d9
Chat: Allow plugins to add custom /crq handlers ( #8225 )
2021-04-25 15:26:05 -07:00
Guangcong Luo
810aff74cd
Namespace more server global types
2021-04-25 14:16:27 -07:00
Guangcong Luo
0e0389bdc8
Rename pageContext.send to pageContext.setHTML
...
It's currently not very similar to commandContext.send so using the
same name could make things very confusing.
We have a new `pageContext.send` function that actually behaves as
you'd expect.
2021-04-25 13:25:42 -07:00
Kris Johnson
46b9a36fa7
/hiderank: Don't let users hide as Section Leaders
2021-04-25 02:26:46 -06:00
Mia
5e455cdb6c
Fix missed punishment description conversions
2021-04-24 21:27:53 -05:00
Kris Johnson
0d5a99d9b0
FIx sorting in /sectionleaders
2021-04-24 01:05:58 -06:00
Guangcong Luo
7336b22540
Fix support for spotlight rooms
2021-04-24 02:46:45 -04:00
Guangcong Luo
e75636aebc
Fix crash in custom punishments change
2021-04-24 02:46:07 -04:00
Guangcong Luo
486f292904
Refactor everything to use Utils.sortBy ( #8220 )
...
A few uses of `array.sort()` have been left alone:
- sorting in `data/` because they aren't supposed to import anything
- `set-importer` because I still have no clue what that's for and what
dependencies it is/isn't allowed to have
- `sort()` with no arguments used as a lexical sort (at which point
`sortBy` offers no benefits)
All other cases have been replaced with `Utils.sortBy`, which should
be a massive increase in readability.
Sort orders should be much more readable now, without needing to puzzle
through sign issues. The order is always low-to-high, A-to-Z,
true-to-false.
2021-04-23 22:41:00 -07:00
Mia
d992b8f5fa
Add more support for custom punishments ( #8215 )
2021-04-23 22:40:31 -07:00
Mia
7154920b2c
Support forcing modchat on ladder tour battles ( #8214 )
2021-04-23 22:40:09 -07:00
Kris Johnson
a1bdafbfe8
Add room sections ( #8205 )
2021-04-23 22:39:56 -07:00
Annika
909d4657f4
Trivia: Further clarify typing
2021-04-22 12:38:33 -07:00
Annika
df16828aaf
Trivia: Fix typing for TriviaLadder
2021-04-22 12:10:13 -07:00