Commit Graph

23714 Commits

Author SHA1 Message Date
whales
e949471403 Fix indirect punishments (#5738) 2019-08-30 08:46:38 -05:00
whales
b15dd2a528 Typescript punishments (#5728) 2019-08-29 19:46:42 -05:00
Guangcong Luo
0fdaeea3db Fix spread move messages
In certain cases, a spread move that KOed an opponent would send an
incorrect message which could crash the client. This fixes that while
also simplifying the code.
2019-08-28 20:47:15 -05:00
Ben Davies
166efd79d9 Fix typo in IPTools 2019-08-28 19:20:01 -03:00
TheJetOU
79c42ccac4 Lottery improvements (#5736)
- Fix typos in help command
  - Link lottery in declare message
  - Don't delete lotteries when ended
  - Remove useless if-cond checks
2019-08-27 19:56:14 -07:00
TheJetOU
54db9e2ebb Fix missed Rooms() (#5735) 2019-08-27 21:44:01 +02:00
whales
f143d83a67 Refactor Chat to a big class (#5729) 2019-08-27 08:08:33 -07:00
whales
ba328099d2 Remove Tournaments.tournaments map (#5734) 2019-08-27 07:34:19 -07:00
Bär Halberkamp
5211d8b349 Update credits 2019-08-27 05:42:28 +02:00
Guangcong Luo
a726ac6f57
Try out GitHub Actions 2019-08-26 16:20:03 -07:00
HoeenHero
bb7dde3b93 Make tournaments not break when hotpatched
It might be wise to refactor this to not use a standalone
tournaments object later.
2019-08-26 15:12:30 -04:00
Ben Davies
ae023212b5 Clean up sockets on process exit too, not just process disconnect
Sometimes when the server gets killed, the TCP closing handshake on
sockets currently open never actually gets completed, screwing with
things like bots that don't implement keepalive/timeouts of any kind.
2019-08-26 15:20:07 -03:00
TheJetOU
620fd82376 Add lottery plugin (#5722) 2019-08-26 09:56:01 -07:00
Ben Davies
dc5a26a347 Remove old hack for xhr-streaming connections
This was actually closing open connections instead.
2019-08-25 13:13:32 -03:00
Bär Halberkamp
4d922fb2d9 Add translations supplied by global staff 2019-08-25 17:03:44 +02:00
TheJetOU
2b28c9fd6b Refactor Rooms(), Users() to Rooms.get(), Users.get() (#5725) 2019-08-25 06:33:56 -07:00
whales
2a776b78ad Display a specific message for forcetrusted user's auth (#5731) 2019-08-25 05:05:21 -07:00
Jeremy Piemonte
9a2b2fed90 Allow non-ac users to send links in help tickets (#5726) 2019-08-25 05:04:28 -07:00
whales
3e7b30dbda Fix lint errors in tournaments (#5730) 2019-08-25 04:17:47 -07:00
TheJetOU
7fe2e5338c TypeScript Tournaments (#5723) 2019-08-24 03:48:13 -07:00
whales
043b011f76 Improve hidetext permissions (#5724) 2019-08-24 03:44:49 -07:00
Guangcong Luo
e0a2cf07e1 Correctly define global types for .ts files
Global types are defined differently for `.ts` files than for `.js`
files, leading to some confusion for past refactors.

This commit defines them correctly.

I'm also considering making certain global types only available under
namespaces, but I don't want to do that to `User` or `Room`, so for
now, there are no changes there, besides putting streams in the
`Streams` namespace (so `WriteStream` is now `Streams.WriteStream`).
2019-08-23 09:33:49 -07:00
ayiadvance
461583ee48 Role Clarifications in /mafia dt (#5705)
Created distinctions between:
Role Cop and Role Cop (Classic)
Red Goo and Red Goo (Cracking Idea)
Neapolitan and Vanilla Cop

Also clarified some roles and standardized how Idea Variant roles are listed.

Added a distinction between Silencer and Silencer (Greater Idea) and between Grey Goo and Grey Goo (Cracking Idea). Also added the (xxx Idea) tag to the roles in their respective ideas.
2019-08-23 07:40:07 -04:00
whales
ffcdadf3bb Mafia: Implement forced selflynch, disabling hammer (#5718) 2019-08-23 07:35:29 -04:00
Bär Halberkamp
47b5fd9a8f Add german translation of the last batch of commands 2019-08-22 14:34:44 +02:00
Marty-D
4cecf1117a
UU: Keep Drizzle and Drought banned
https://www.smogon.com/forums/posts/8216192/
2019-08-20 19:46:16 -04:00
HoeenHero
7bbec56c33 Allow moderators to view room faq sources 2019-08-20 15:54:58 -04:00
Guangcong Luo
35b0fc1593 Add missing BW2 avatars
Added:
- nate-dueldisk
- rosa-dueldisk
- bianca-pwt

We only had dueldisk versions before, so they've been swapped for their
regular avatars (previously, `nate` was the duel disk version, now, it's
the normal version, and `nate-dueldisk` is the duel disk version).

In addition, wally-gen7 has been removed - it was a duplicate of the
normal wally.
2019-08-20 06:26:54 -04:00
Guangcong Luo
2cf9f6d233 Add fan-made Gen 7 avatars from Beliot419
(Also pixelate the "avatar changed" message.)
2019-08-19 23:39:06 -07:00
Marty-D
85f96e2ba8
Gen 5 1v1: Update ruleset
https://www.smogon.com/forums/posts/8206461/
2019-08-19 20:47:21 -04:00
TheJetOU
8f02f0aab8 Revert "Add margin in helptickets (#5713)" (#5720)
This reverts commit f128b74276.
2019-08-19 11:40:39 -07:00
The Immortal
8b2785c693
BH: Ban Mega Rayquaza 2019-08-19 13:20:05 +04:00
Marty-D
158d160fd6
Datacenters: Add new ranges 2019-08-18 14:13:17 -04:00
supermii2
c48ca2c8c5 Add mirror flag to movesearch. (#5716) 2019-08-18 15:59:02 +02:00
whales
7eee6b3489 Fix URL for snatch and mirror dex lists (#5715) 2019-08-18 09:12:48 -04:00
The Immortal
f920548c9e
STABmons: Ban Aerodactyl 2019-08-18 14:40:09 +04:00
Jeremy Piemonte
5beddaa839 Blackjack: Various improvements and bug fixes (#5714)
- Ensure the first card of the dealer is on the top of the turnlog
- Don't allow people to use the command to start the game if the game has already started
- Use user names instead of user ids in the initial playerlist for join messages
- Modlog conditionally if the game was ended forcibly or not
2019-08-17 22:18:39 -07:00
TheJetOU
f128b74276 Add margin in helptickets (#5713) 2019-08-17 20:50:13 +02:00
supermii2
29655db703 Add descriptions for charge/recharge moves in /dt (#5712)
Charge moves and Recharge moves will have a tag when using /dt, similar to other tags like "Supressed by Gravity"
2019-08-17 10:37:02 +02:00
fart
49416194db Add Celebrate Aerodactyl event (#5711) 2019-08-16 22:16:14 -04:00
Marty-D
196983430f Gen 3 OU: Add 3 Baton Pass Clause and ban Baton Pass Smeargle
https://www.smogon.com/forums/posts/8212796/
2019-08-16 21:39:06 -04:00
supermii2
5c45b6dca0 Added various flags to movesearch (#5707)
- added flags for charge, gravity, recharge and reflectable
2019-08-16 22:47:40 +02:00
RyotaMitaraiWeb
ee0575a6f3 Minor typo fix in /itemsearch help (#5709) 2019-08-16 21:57:32 +02:00
The Immortal
242b6bed9b Random Battle updates 2019-08-16 19:40:31 +04:00
TheJetOU
f4e6fd7584 Implement a /showglobalpunishments command (#5703) 2019-08-15 20:25:30 +02:00
Bär Halberkamp
1728d8b24a fix an oversight in my previous commit 2019-08-15 19:36:06 +02:00
Bär Halberkamp
b912b2577d Add french translation for the new commands 2019-08-15 18:50:51 +02:00
Bär Halberkamp
e756e74293 Fix exploit allowing filter evasion using forcepromote 2019-08-15 18:50:50 +02:00
The Immortal
5a65f6fe0b
Camomons: Ban Mega Latias 2019-08-15 16:10:58 +04:00
Kirk Scheibelhut
8c49d0c164 Auto-accept challenges from challenge target (#5706) 2019-08-14 13:38:22 -07:00