Commit Graph

596 Commits

Author SHA1 Message Date
Guangcong Luo
a01daed212 Fix /rebuild crash 2019-11-16 10:10:33 +13:00
peach
52a10f8291 Fix paths when hotpatching properly 2019-11-15 23:35:56 +10:30
peach
42aec533a6 Fix paths when hotpatching 2019-11-15 23:34:19 +10:30
whales
0d7e473672 Allow viewing roomfaqs without showing source (#5944) 2019-11-16 00:12:26 +13:00
Kris Johnson
46ad0bccd7 Add Gen 8 Pokemon 2019-11-15 22:01:36 +13:00
whales
28be861480 Don't use default property values in announcements 2019-11-15 16:14:00 +10:30
Guangcong Luo
23f9bfa1b7
Split up server/chat-commands/ (#5943)
`server/chat-commands.js` is now a directory. It's been split into
`core`, `moderation`, and `admin`. `info` and `roomsettings` from
`chat-plugins` have also moved to `chat-commands`.

Some cleanup:

- Bot commands for inserting HTML into rooms like `/adduhtml` have been
  moved from `info` into `admin`.

- `/a` has been renamed `/addline`, for clarity (and also moved from
  `info` into `admin`).

- Room management commands like `/createroom` and `/roomintro` were
  moved to `room-settings`

- `chat-commands/admin` has been TypeScripted
2019-11-15 11:12:54 +13:00
Lusamine
a591b639f7 Fix handling of locked and proxy connections (#5938) 2019-11-15 11:10:04 +13:00
Kirk Scheibelhut
d62a2d9c69 Introduce /modchatnext command (#5934) 2019-11-12 11:37:37 +13:00
Guangcong Luo
411afba392 TypeScript Announcements/Poll chat plugins 2019-11-11 02:13:48 +13:00
Guangcong Luo
c40a7d2fb2 Allow broadcastable commands in command console
Command consoles previously would silently fail if you used a
broadcastable command (like `/dt` or `/learn`). They are now let
through, although actually trying to broadcast (like `!dt`) will
still show an error message.
2019-11-11 02:13:48 +13:00
Astrid Halberkamp
958f79125c
New translations and stuff (#5921)
* Add more command translations

* and some of the one i forgot

* More of the string i forgot

* newline

* Update hindi.json
2019-11-10 13:31:11 +01:00
Astrid Halberkamp
a3244a7449
Fix URL detection in usernames 2019-11-10 13:23:11 +01:00
HoeenHero
6bf6c6596b Do not allow tickets to stay open for more than a day 2019-11-09 14:34:53 -05:00
Waleed Hassan
d4c2349923 Make config-loader return type Config (#5939) 2019-11-09 04:21:54 +10:30
Lusamine
68c0634a5b Update datacenters & ip-tools (#5937) 2019-11-07 17:41:10 +10:30
HoeenHero
e78155766d Tickets: Automate & improve various tasks
- Automatically request PM logs from users when possible in PM harrasment tickets.
- Add a button to check a reported user's global modlog to all tickets.
- Add buttons for force-renaming/clearing the status of a user in inappropriate name/status tickets.
- Add a button for checking shared battles between a the reporter and reported user for battle harrasment tickets.
- Other minor improvements.
2019-11-06 10:27:59 -05:00
HoeenHero
d13a981fea Tickets: Don't active tickets when they are claimed 2019-11-06 10:27:58 -05:00
Waleed Hassan
92b2c128c2 Upgrade to TypeScript 3.7 (#5935) 2019-11-06 23:02:36 +10:30
Spandan Punwatkar
b3017da7d1 Fix movesearch bug with "lowers" (#5933) 2019-11-06 05:17:24 +10:30
whales
50c44fa822 Update mafia data 2019-11-04 12:17:36 +10:30
PartMan7
cef911f215 Add /scav addhint to help (#5928)
* Add /scav addhint to help

* Fix order

Moved requirements to end of line
2019-11-03 21:15:47 +01:00
whales
b9d758b473 Add a couple more letters to the evasion filter 2019-11-02 15:37:52 +10:30
Lusamine
e17ab3670d Allow trusted users to bypass blacklist/roomban if not directly punished (#5925) 2019-11-01 19:52:50 +10:30
whales
22283e8c95 Add a letter to the evasion filter 2019-11-01 18:31:58 +10:30
Lusamine
684b03e2f3 Allow /blockpms to block locked and semilocked users (#5923) 2019-11-01 13:34:52 +10:30
Astrid Halberkamp
c1a50bf0e0 Chat monitor: Improve filter evasion lock modlog message# Please enter the commit message for your changes. Lines starting 2019-10-30 20:04:56 +01:00
Waleed Hassan
a518cf102a Take steps to statically type Config (#5920)
This commit changes the TypeScript global variable of `Config` from
`AnyObject` to `Config & AnyObject`.

It still falls back to `AnyObject` (hence the 'Take steps') because of
the main-specific `Config` properties that are used without being in the
`Config` object itself.

These can be added by someone with access to the PS main server.

Regardlesss, this is an improvement as IntelliSense can display and
autocomplete the known properies.

In addition, the TypeScript compiler will now report bugs
concerning the types of the properties, which I have fixed in this
commit.
2019-10-30 18:45:20 +10:30
Astrid Halberkamp
a09be2cadb Poll: make /poll display the poll instead of help
Requested, consistent with other commands
2019-10-29 20:08:41 +01:00
Astrid Halberkamp
65e9b7037e TOTD: refactor to improve loading 2019-10-29 20:06:38 +01:00
Lusamine
945fb28bdf Update help for newer blockpms options (#5917) 2019-10-30 01:04:18 +10:30
TheMezStrikes
b0176ab926 Update CAP samples (#5918) 2019-10-30 01:03:47 +10:30
whales
51e632975c Implement /sharedbattles for finding shared battles (#5906) 2019-10-30 01:03:31 +10:30
Lusamine
a1fe7d3fc9 Update datacenters and IP-tools (#5915) 2019-10-27 16:25:24 -04:00
Astrid Halberkamp
1453f635f9 Don't make battle filters work in names and statuses 2019-10-27 19:56:53 +01:00
Astrid Halberkamp
ef2b1e3afc Make battlefilter not work for challenge battles 2019-10-27 18:27:58 +01:00
whales
0c1e108739 Mafia: Fix mistake in data 2019-10-26 23:46:20 +10:30
TheMezStrikes
9a4b23ca7e Don't escape HTML for tour names (#5911)
The client already does this, and doing it twice causes `[Gen 7 Let's Go] OU Single Elimination Tournament!` this, which doesn't seem necessary
2019-10-26 15:25:10 +10:30
TheMezStrikes
5592e8e518 Make /events view visually match /events (#5727)
* Make /events view visually match /events

Lack of consistency was bothering me

* This is why I shouldn't code when I'm sick

* Generalize formatEvent to function

I'm just going to pretend this code is good

* Update room-events.js
2019-10-25 13:04:53 +02:00
Aurolux
4fcc8535c3 Modnote Tours Player Count Upon Start (#5863)
* Modnote Tours Format and Player Count Start

* Fix Trailing Whitespace on line 610

* String Interpolation Injects Integers Too

No need for a method to change the Integer's type to String

* Add a Private Modaction

* Simplify modnote to just player count

* Update server/tournaments/index.ts

Co-Authored-By: Guangcong Luo <guangcongluo@gmail.com>

* Change CommandContext Element to output

Co-Authored-By: Guangcong Luo <guangcongluo@gmail.com>

* Shorten Modlog Entry
2019-10-25 11:49:26 +02:00
Lusamine
a72713f34c Add information about permalocks in help tickets (#5910) 2019-10-24 22:02:21 -04:00
HoeenHero
e9cf821363 Staff closing inactive tickets shouldnt get credit
Closing an inactive ticket indicates that there was no communication
between the user and staff, do not credit a ticket to the staff member.

Also fixes an issue with a error message for closing tickets with a
negative result that were already closed.
2019-10-24 12:57:21 -04:00
HoeenHero
b2a1b395f6 Allow the input log to be re-requested
One issue I ran into this morning was a player not being in the battle
when the log was requested or leaving and then rejoining the battle
after the log was requested. In these situations, the player cannot
see the export request button. This allows the requester to re-send
the request message + button to the players who have not allowed
the input log to be exported yet.
2019-10-24 10:47:02 -04:00
Astrid Halberkamp
2749a731cc
Fix a tiny but huge mistake in filter counting 2019-10-24 08:54:29 +02:00
Astrid Halberkamp
983c650db5
Fix counting hits on filters 2019-10-24 08:48:04 +02:00
Astrid Halberkamp
187a0e6c1b
Log filter changes in upperstaff 2019-10-24 08:46:05 +02:00
Astrid Halberkamp
7ba8d17fa1
Chat Monitor: Better messages for users getting caught 2019-10-24 08:41:40 +02:00
Kirk Scheibelhut
d0f3e711d1 Add chp as an alias for checkpunishment
https://www.smogon.com/forums/threads/add-cp-as-an-alias-for-checkpunishment.3655673/
2019-10-23 17:58:42 -07:00
whales
5d353ec7f8 Mafia: Automatically refresh HTML room lynches (#5891) 2019-10-23 09:13:45 -04:00
whales
3127bd57c4 Filters: Hopefully prevent some false evasion positives (#5907) 2019-10-23 12:18:01 +02:00