Commit Graph

23714 Commits

Author SHA1 Message Date
Mia
950c74360b
Chatlog: Handle next result buttons properly (#7658) 2020-11-07 14:58:53 -08:00
Guangcong Luo
1e9b506ee5 Add detector for infinite event loops
This has happened a few times in the past, so this helps prevent them
from spinlocking entire processes.
2020-11-07 22:56:37 +00:00
Konrad Borowski
119b98b593
Chatlog: Automatically determine regex engine (#7657)
This makes ripgrep use PCRE2 for searching logs only when necessary.
2020-11-07 14:32:44 -08:00
Annika
66c043086e Modlog converter: Fix crash without SQLite library 2020-11-07 13:40:07 -08:00
Annika
ce6a20aea1 Punishments: Validate timeout durations 2020-11-06 18:17:44 -08:00
Annika
edc53a6fc6 Fix password generation for private battles 2020-11-06 17:43:46 -08:00
Kris Johnson
1b6227d92a Trademarked: Hardban self-switching moves as well 2020-11-06 16:27:57 -07:00
Kris Johnson
f4635b007a Trademarked: Hardcode force-switching move bans 2020-11-06 16:17:17 -07:00
Annika
ecd90af23b
Punishments: Make locks expire on their own (#7598) 2020-11-06 15:14:46 -08:00
Annika
e6a61e52aa
Fix renaming battle rooms (#7399) 2020-11-06 15:14:08 -08:00
Annika
059452dc0d
Modlog: Move type signatures into Map constructors 2020-11-06 11:54:16 -08:00
ACakeWearingAHat
155cf001f5
Gen 2 Random Battle improvements (#7651) 2020-11-06 17:54:28 +04:00
Annika
ec0a92469a Modlog: Make tests work without SQLite 2020-11-05 22:40:53 -08:00
Kris Johnson
c46d4bda18 National Dex UU: Update UU Pokemon 2020-11-05 23:27:39 -07:00
Guangcong Luo
e2f4d247e7
Support npm run fix (#7640) 2020-11-05 16:48:49 -08:00
urkerab
808e5bb3c4
Restore As One boost activation (#7650) 2020-11-06 03:53:36 +04:00
The Immortal
499c5f8588 Monotype: Ban Kartana and Damp Rock 2020-11-05 23:11:55 +04:00
The Immortal
abd955974f Camomons: Ban Genesect and Zygarde 2020-11-05 23:11:20 +04:00
Annika
0a27f398df
Helptickets: Display message in unclaimed tickets (#7647) 2020-11-05 11:09:47 -08:00
Konrad Borowski
32f299584f
Remove hotpatch notifications from Upper Staff (#7646) 2020-11-05 22:56:39 +04:00
Guangcong Luo
9b5217ab70
Split up dex-data into more files (#7634)
* Split up dex-data over individual files

This commit introduces:
- `dex-abilities.ts`
- `dex-conditions.ts`
- `dex-formats.ts`
- `dex-items.ts`
- `dex-moves.ts`
- `dex-species.ts`

These files centralize definitions from `dex-data` and `global-types`.

* Inherit ItemData from Item etc

Previously, Condition inherited from ConditionData. Now, ConditionData
inherits from Condition. The advantage of the new approach is that now,
Condition and DataCondition no longer need to be separate types, and
there should be much less duplication of type definitions in general.

This has also been done for

- ItemData/Item/DataItem
- AbilityData/Ability/DataAbility
- FormatData/Format/DataFormat

Species and DataSpecies was already merged, but this also reverses
their inheritance (saving a lot of duplicated definitions in the
process!)

The only one left is MoveData, which is just super complicated and
will need its own commit.
2020-11-05 05:00:13 -08:00
Mia
938d998da0
Mafia: Allow staff to speak in games (#7642) 2020-11-05 04:57:09 -08:00
Guangcong Luo
fbdda144eb
Support Config.noguestsecurity (#7625)
This Config option, intended purely for development test servers,
allows users to log in without a signed token, by using
`/trn [USERNAME]`. This allows logins without a login server.

The rest of the server has been changed to make sure unregistered
users never have any powers they shouldn't have.
2020-11-05 04:55:05 -08:00
Mia
71dbb2f466
Support Config.nothrottle (#7637) 2020-11-05 04:52:04 -08:00
Kris Johnson
acbe53ba4a
Modernize the coding style of the OM chat plugin (#7643) 2020-11-05 04:50:05 -08:00
Konrad Borowski
1a9bfa044a
Require a digit to follow port number in links (#7644) 2020-11-05 04:44:28 -08:00
Annika
56506c1801 Fix blocking room invites
When settings.blockInvites is false or undefined, we should allow room invites to be sent.
However, this code denies it because it thinks that the user sending the message is not of the rank "undefined" (or "false"), which isn't a real rank.
2020-11-04 21:37:57 -08:00
The Immortal
0dd62444f5 Trademarked: Ban Urshifu-S 2020-11-05 04:34:08 +04:00
Kris Johnson
f91fb1bbc5
Skarmory is UU by usage in National Dex 2020-11-04 16:52:58 -07:00
Mia
67ee30f2fd
Introduce Config.noipchecks (#7626) 2020-11-04 15:14:30 -08:00
urkerab
a141c69f1a
Don't reveal Illusion in Camomons (#7639) 2020-11-05 03:09:24 +04:00
Mia
8a1919fd0a Chatlog: Update arg handling 2020-11-04 14:24:53 -06:00
Mia
065be6ca78
Topusers: Fix arg handling (#7635) 2020-11-04 23:14:40 +04:00
Konrad Borowski
da24ba9c6e
Consider bots to be staff (#7633) 2020-11-04 05:21:46 -08:00
Kris Johnson
fb9d3c6b92
Move Landorus to Uber
https://www.smogon.com/forums/threads/landorus-incarnate-is-now-banned-from-ou.3672804/
2020-11-04 00:53:51 -07:00
The Immortal
4e8b7674ba Update BSS thread 2020-11-04 06:54:03 +04:00
The Immortal
d641ea080f
Add formats codeowner 2020-11-04 06:35:32 +04:00
DarkPhoenix911
900f951d73
NatDex Mono: Correct banlist (#7631) 2020-11-04 06:01:25 +04:00
Annika
202bb7affe Modlog: Properly clean up streams
We don't need a reason to differentiate between whether or not a modlog stream was never initialized or was previously destroyed, and we don't need a Map with 8.2 million keys.
2020-11-03 15:44:57 -08:00
Mia
56501355d7
Support ignoring room invites (#7180) 2020-11-03 10:15:17 -08:00
The Immortal
2bc4a51a50 Random Battle improvements 2020-11-03 19:43:57 +04:00
The Immortal
bc97a72662 Update National Dex UU 2020-11-03 19:42:10 +04:00
Leonard Craft III
920af21aac
Abilities: Add isPermanent flag (#7614) 2020-11-03 10:31:11 -05:00
DarkPhoenix911
8260585498
NatDex Mono: Ban Baton Pass (#7629) 2020-11-03 19:03:36 +04:00
Annika
ee79159a25 Helptickets: Don't make global modlog entries 2020-11-02 21:58:46 -08:00
Annika
aa069ce8fd
Support disabling modlogs (#7619)
Co-authored-by: Christopher Monsanto <chris@monsan.to>
2020-11-02 22:59:31 -05:00
Kris Johnson
e1c96f8a74
Add Alphabet Cup Move Legality (#7628) 2020-11-03 02:42:34 +04:00
Kris Johnson
7406821327
Fix STABmons banlist 2020-11-02 13:27:45 -07:00
Kris Johnson
fcf9a41569
STABmons: Ban Thundurus, Zygarde, and Arena Trap
https://www.smogon.com/forums/threads/stabmons.3656429/page-6#post-8646463
2020-11-02 13:25:49 -07:00
DarkPhoenix911
7e34a82605
NatDex Mono: Ban Terrain Extender (#7627) 2020-11-02 23:40:20 +04:00