Guangcong Luo
1eb081f7e8
fix help
...
Co-authored-by: Quinton Lee <quivistis@gmail.com>
2021-04-29 00:54:40 -07:00
Guangcong Luo
3f838841ad
suggested change
...
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-04-28 00:57:44 -07:00
Guangcong Luo
644229e2a9
Implement /botmsg
...
Supersedes #8227
2021-04-28 00:14:37 -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
Mia
5586484622
Hosts: Fix crash
2021-04-22 11:41:16 -05:00
Mia
cec237ddff
Remove extraneous
2021-04-22 08:35:36 -05:00
Mia
54e2c74630
Punishments: Fix markshared blacklist loading
2021-04-22 08:35:07 -05:00
Mia
a92c44cf52
Add missing global punishments to /pl
2021-04-22 08:15:50 -05:00
InAShellnut
9ab4c86fe3
Add Stadium 2, Nintendo Cup 1997, and Nintendo Cup 2000 ( #8195 )
...
An implementation of Nintendo Cup 1997, Nintendo Cup 2000, and Pokemon Stadium 2, for Pokemon Showdown. The only thing which has not been implemented was showing the exact health of both Pokemon in Pokemon Stadium 2, however implementing that requires changes to the showdown client. The Nintendo Cup 1997 code was done by Enigami, and the rest was by myself (Shellnuts).
This should fulfill the requirements asked by the following accepted suggestions:
https://www.smogon.com/forums/threads/please-add-a-pok%C3%A9mon-stadium-2-simulator-in-showdown.3679486/
https://www.smogon.com/forums/threads/add-nintendo-cup-1997-and-2000-as-challenge-only-formats.3653454/
2021-04-22 00:54:14 -07:00
Annika
0e21aebfab
Trivia: Improve display for unranked games
2021-04-21 20:27:16 -07:00
Mia
9a1df4241d
/permissions: Put single command permissions into a readmore
...
Requested change
2021-04-21 09:03:47 -05:00
Mia
e9b1bfe5f0
Chat-monitor: Fix /filter help
...
(CommandContext#run does not work for help commands that are arrays)
2021-04-21 08:30:19 -05:00
Mia
075c9e85c5
Usergroups: Properly include aliases in supportedRoomPermissions
...
This can be useful for things like /poll htmlcreate
2021-04-20 12:54:25 -05:00
Mia
34f26a2049
Chat: Fix alias duplication issue in AnnotatedChatHandler#aliases
2021-04-20 12:54:24 -05:00
Annika
5fde7faf07
Support translation of /privacypolicy
2021-04-19 11:31:45 -07:00
Annika
d5a4c7d9e2
CommandContext#globalModlog: Make user optional
...
Global modlog entries aren't always acting on a user, so making this parameter optional makes sense. I also changed them to default to null for consistency with CommandContext#modlog.
2021-04-19 08:53:17 -07:00
Annika
c87f63f4f0
/processes: Fix RAM usage display
...
`ps` reports RSS in kb, not bytes, making /processes off by a factor of 1024
2021-04-17 22:17:48 -07:00
Kris Johnson
f4fda49201
Update Battle Factory tests and command
2021-04-16 17:35:26 -06:00
Kris Johnson
e9e58c9f99
Dexsearch: Fix bug with mod parameters
2021-04-15 16:44:44 -06:00
Mia
5ed9517c84
Polls: Increase max question limit
2021-04-15 12:11:33 -05:00
Annika
9933c4e3f1
Fix lint errors
2021-04-15 09:03:33 -07:00
Mia
fdb1d4b762
Chat: Properly allow banwording new spoiler formatting
2021-04-15 10:33:41 -05:00
PartMan
54ebe56f20
Scavengers: Escape usernames in /scav status ( #8201 )
2021-04-15 15:46:43 +02:00
Kris Johnson
a0c3f105b2
Add /filter test ( #8197 )
2021-04-14 10:15:25 -07:00
Guangcong Luo
b8681ec288
Use a dispatch system for sockets ( #8198 )
...
Instead of using a mega-switch, instead use a dispatch system for the
sockets protocol.
A big advantage is that we don't need to be weird about variable
declarations using this method. We can use `const`s!
2021-04-14 07:18:59 -07:00
Distrib
334df4a744
Announcements: Fix /announcement htmlcreate ( #8194 )
2021-04-13 14:00:48 -07:00
Marty-D
84301ca382
Admin: Fix typo in processes
2021-04-12 17:36:43 -04:00
Marty-D
4eee39cd4a
Revert "Fix suspect test unbans"
...
This reverts commit 6c3615a6f8 .
2021-04-12 17:03:40 -04:00