Commit Graph

20580 Commits

Author SHA1 Message Date
Guangcong Luo
8b68cdd736 Fix Streams bug
It turns out 001f98b4f2 was wrong.

When urkerab asked why it `peek` wasn't awaited:

e91c4c5260 (commitcomment-41364837)

The answer was because clearing the buffer after peeking needed to
happen synchronous: if the buffer is written to after peeking but
before the buffer is cleared, that write is lost forever.

This just goes to show, if you do something subtle enough to require
type assertions, you should probably add a comment about what's going
on.

Fixes #7605

This also removes `BattleStream#start()` which is completely useless
API complication. A better implementation would properly forward
crashes between streams (maybe `pipeTo` should do this) but as it
stands, it's not doing anything.
2020-11-01 02:06:24 +00:00
Kris Johnson
97ed534d64
Trademarked: Update bans 2020-10-31 19:43:45 -06:00
Annika
f7a291df78 Build: Update dependency check 2020-10-31 14:34:44 -07:00
Leonard Craft
0300dadc9e DOU: Ban Marshadow, Shadow Tag
https://www.smogon.com/forums/threads/np-ss-dou-stage-5-one-more-time-jirachi-melmetal-urshifu-single-strike-swagger-quickbanned-marshadow-shadow-tag-quickbanned.3672010/post-8644210
2020-10-31 16:30:28 -05:00
Annika
06535b4235 Modlog: Disallow duplicates in ModlogEntry#alts 2020-10-31 14:13:23 -07:00
Guangcong Luo
8149bb683a
Improve and number design standards 2020-10-31 12:36:11 -07:00
Marty-D
79f2c80173
DOU DLC1: Fix banlist 2020-10-31 11:21:29 -04:00
The Immortal
3165246829 Random Battle: Minor updates 2020-10-31 17:38:23 +04:00
Annika
06cbdada99
Don't allow forcerenamed usernames to be reused (#7609) 2020-10-31 05:54:17 -07:00
Distrib
3909191904
Display the announcement whith /announcement (#7612) 2020-10-31 05:52:17 -07:00
HoeenHero
54c8035c7b Update OU Sample Teams link 2020-10-31 08:28:42 -04:00
Annika
923b69cac6 Trivia: Prevent stalemates in Infinite mode 2020-10-30 18:09:25 -07:00
Annika
58d8a2af70 Fix API for writing to the global modlog 2020-10-30 16:57:29 -07:00
Annika
b9d993495d Modlog: Fix crash in writing global modlog 2020-10-30 16:36:55 -07:00
Annika
2f130e8762
Modlog: Support logging to a SQLite database (#7513)
* Modlog: Support logging to a SQLite database

Co-authored-by: Christopher Monsanto <chris@monsan.to>
2020-10-30 19:27:25 -04:00
The Immortal
af31d6292a Rename DLC 1 formats 2020-10-31 03:15:39 +04:00
Annika
84ff0cd90c
Fix permission checks for global promotions 2020-10-30 15:59:40 -07:00
The Immortal
388c94c15d Remove VGC 2020 ladder 2020-10-31 02:56:59 +04:00
Kris Johnson
319ce516f3
Inheritance: Ban Regieleki and restrict Butterfree 2020-10-30 16:26:34 -06:00
The Immortal
50ffe25ef6 AAA: Ban Dragapult, Dragonite, and Magearna 2020-10-31 02:01:19 +04:00
DarkPhoenix911
acaa7238b6
National Dex Monotype: New bans and unbans (#7608) 2020-10-31 01:28:16 +04:00
The Immortal
91030b547d Add event Milcery 2020-10-31 01:25:17 +04:00
The Immortal
501f502ebc Add Pikachu-World event 2020-10-31 00:07:31 +04:00
HoeenHero
f158940783
Don't report multiple punishments for a single room (#7606) 2020-10-30 09:51:10 -07:00
Annika
1d9c24c382
Users: Don't merge unregistered names across IPs
Fixes #7594
2020-10-30 08:46:52 -07:00
The Immortal
42f491a092 Fix Ripen 2020-10-30 14:03:35 +04:00
Kris Johnson
a641cfcce8
Fix Overflow Stat Clause and turn it into a mod (#7604) 2020-10-30 10:59:38 +04:00
Kris Johnson
751550ad5e
Monotype: Update bans
https://www.smogon.com/forums/threads/ss-monotype-metagame-discussion-crown-tundra.3672167/page-3#post-8642660
2020-10-29 23:18:24 -06:00
Leonard Craft
b673ff3fe4 Add Berserk to the Berserk sim test 2020-10-30 03:05:46 +00:00
Annika
1ab6091551 Helptickets: Properly quote and escape button HTML 2020-10-29 19:30:06 -07:00
Annika
7db0505e7b
Moderation: Remove whitespace 2020-10-29 18:11:27 -07:00
Annika
2469dd7c08
Moderation: Actually make groupchatbans hotpatchable 2020-10-29 18:04:18 -07:00
Kris Johnson
d4a2facb91
National Dex Monotype: Unban Arena Trap 2020-10-29 17:20:55 -06:00
Annika
b6326d7a86 Trivia: Document /trivia move 2020-10-29 15:59:31 -07:00
Marty-D
89050aaefb
Add missing Trainer avatars 2020-10-29 15:22:42 -04:00
Annika
3ed4a34270
ANOTD: Change tagline to quote
Requested by Anime and Manga staff
2020-10-29 12:07:26 -07:00
The Immortal
8d3e06854f Add Galarica Wreath 2020-10-29 21:01:56 +04:00
edcrfv
29ef7b5580
Fix Hold Hands' num (#7603) 2020-10-29 20:33:36 +04:00
Guangcong Luo
e90658c038 Validate Natures in tests
(There's no need to validate natures somewhere that has an actual
performance impact.)
2020-10-29 16:19:07 +00:00
Guangcong Luo
81dc3a7813 Update devDependencies
The newest `@types/node` fixes the `assert.strict.equal` deprecation
issue, so I'm updating more frequently than usual.
2020-10-29 16:17:39 +00:00
The Immortal
4734c08edb BH: Add Dynamax Clause 2020-10-29 19:45:35 +04:00
Kris Johnson
ab6e173e24
Move natures into their own file (#7601) 2020-10-29 08:38:03 -07:00
The Immortal
13274e9a2c Add Doubles DLC 1 format 2020-10-29 19:35:42 +04:00
Mia
251f801210
Studio: Only request YT video data once (#7595) 2020-10-29 08:31:54 -07:00
Guangcong Luo
1a1e53fc92 Improve documentation
Fixes #7602

Also adds some other stuff, perhaps most notably why we don't use
package-lock so you don't have to dig for 2e85de348f
2020-10-29 15:14:29 +00:00
Mia
6f22b27e15
Ticketbans: Use the user object (#7596) 2020-10-29 08:11:47 -07:00
Mia
458b47cb39
Chatlog: Allow non-trusted secret room ROs to view logs (#7597) 2020-10-29 06:48:55 -07:00
Guangcong Luo
2fd138f82c Reorganize README
The README has been split up so guides for PS's different use-cases are
easier to find.
2020-10-29 13:17:26 +00:00
Guangcong Luo
e546236221 Improve error for Japan-only event moves
Thanks Plague Von Karma for help with wording!

Refs #7581
2020-10-29 12:06:36 +00:00
Annika
efcbc6ce3d
Include groupchat bans in /punishments 2020-10-28 18:59:28 -07:00