Commit Graph

3877 Commits

Author SHA1 Message Date
Mia
4d314e3f5e Ladder trackers: Suppress user-facing errors on restoration
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-07-18 14:28:08 -05:00
Mia
67ca3b04eb Fix searchlog padding 2025-07-18 13:09:47 -05:00
Mia
ad3cedc8ad Actually guard dates via regex testing 2025-07-18 13:00:40 -05:00
Mia
0c4298d29d Fix typo 2025-07-18 12:58:48 -05:00
Mia
c4a6e8de1f Searchlog: Fix next/prev month buttons 2025-07-18 12:58:02 -05:00
Mia
4012a4b532 Searchlog: Add prev/next month buttons, fix date handling for more ambiguous dates 2025-07-18 12:53:34 -05:00
Mia
2b7e1d48b5 Searchlog: Allow searching only a username
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-07-17 23:26:21 -05:00
Mia
4d4c541a57 Searchlog: Adjust header to be more descriptive 2025-07-17 23:14:48 -05:00
Mia
20072695c1 Fix typo 2025-07-17 23:13:41 -05:00
Mia
fa5295db23 Searchlog: Use plainto_tsquery to sanitize syntax 2025-07-17 23:12:11 -05:00
Mia
88726667a1 Searchlog: Fix text rendering 2025-07-17 23:08:35 -05:00
Mia
e81d70440e Chatlog: Fully deprecate support for 'all' dates 2025-07-17 22:58:02 -05:00
Mia
5f31e2efe3 Chatlog: Restore /searchlog 2025-07-17 22:54:09 -05:00
Slayer95
19d279c9b5
CLI: Update to use util.parseArgs (#11245)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-07-17 05:06:26 -07:00
Sergio
38b0d9475e
Minor changes to the help boxes of /ds and /ms (#11094)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
* Minor changes to the help boxes of /ds and /ms

Removed parameters that do nothing (instruct, mimic), changed ssb examples (they were obsolete), added a couple more things. Would love to make the wall of mods you can use with both ds and ms smaller, since a lot of those don't actually change their behaviour, like randomroulette, but I'm not sure how to approach it. A hardcoded list of mods that change things is an option.

* Added "restricted" as a parameter
2025-07-15 21:11:15 -06:00
hammer798
fddbf8adb5
Fix item filters duplicating search terms (#11271) 2025-07-14 14:03:08 -07:00
Slayer95
0b6c1dbeec
Make some dependencies optional: probe-image-size, source-map-support (#11247) 2025-07-14 03:01:41 -07:00
André Bastos Dias
3b7b1d2864
Don't update the timer when an updated request is sent (#11251)
* Don't add time if there is a request update

* Ups

* Change prevRequest to updatedRequest

* Fix tests

* Refactor

* Fix tests
2025-07-13 15:38:58 -06:00
Mia
07a2820cf2 Punishments: Disallow Tor IPs from connecting 2025-07-07 12:18:39 -05:00
Slayer95
88d53617d6
RoomBattleTimer: Reset turn seconds on wait requests (#11240)
Previously, if a player timed out under VGC timer and knocked their opponent,
they would be treated as timing out their following 'wait' request
2025-07-05 01:32:10 -06:00
dot-Comfey
6533311382
Fix oversight from #11217 (#11228) 2025-07-01 01:17:21 -06:00
HoeenHero
8bcd2c2960 Teams: Improve error messages
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Moving the auth at least check later means the locked error message will actually trigger for locked users providing a clearer error message to them.
2025-06-30 12:40:33 -04:00
dot-Comfey
5a4c785ec4
Fix more button in /modlog (#11217)
* Fix more button in /modlog

* Drivers can use /mls

* Update modlog-viewer.ts
2025-06-29 22:09:06 -05:00
Alex "Mathy
9cd93f2a0c
Permalock plugin: Fix room not updating after notice (#11218) 2025-06-29 22:08:13 -05:00
Mia
c03510f909 Users: Don't remove rangelocks on user merge 2025-06-29 22:06:39 -05:00
Alex "Mathy
687b1c4ae0
/show: Fix unescaped HTML template (#11225) 2025-06-29 15:02:38 -06:00
Karthik99999
aab6b728cb /ssb: Fix text formatting issues
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-06-25 19:27:19 -04:00
Karthik99999
e0ccfa1532 Auctions: Fix draft order display 2025-06-25 12:27:09 -04:00
Slayer95
7835b015d9
Explain insecure subdomain in server/README.md (#11212)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-06-20 16:47:56 -07:00
zianwangs
d6e98c21fb
Fix typos (#11200) 2025-06-19 04:10:12 -07:00
Kris Johnson
36ae30160c Auto Responder: Fix ignore page view for regex terms 2025-06-17 13:36:55 -06:00
Kris Johnson
1c28a150e7 Auto Responder: Fix /ar view keys not escaping regex keys 2025-06-17 13:14:39 -06:00
Guangcong Luo
6903a2e2e7
Document new URL format
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
This doesn't say what the format is, but it's pretty easy to figure
out from the redirect, if you particularly care.
2025-06-15 08:11:10 -07:00
Guangcong Luo
e7b2be606a Fix client redirect
For a long time, connecting to non-localhost servers didn't work without
an HTTPS cert. But it's now once again possible. All you need is an
IP with an open port, and a dream.

Syntax is a little different than before. To go to `1.2.3.4` at port `5000`

- before: `http://1.2.3.4-5000.psim.us`
- after: `http://1-2-3-4--5000.insecure.psim.us`

Supporting multiple dots in the URL is too complicated, unfortunately.

The other way still works: `http://1.2.3.4:5000`

And yes, I would 100% recommend that one.
2025-06-15 07:25:04 -07:00
Lucas
4536eee620
/dexsearch: Add support for sorting by (doubles) tier (#11150)
* ds: add tier sorting

* Add support for doubles and natdex tiers

* fix unnecessary nationalSearch passing

---------

Co-authored-by: Meijer,L. (Lucas) <l.meijer6@students.uu.nl>
2025-06-14 19:01:25 -06:00
Mia
c73803efe7 Ladder tours: Expose tracker object for debugging 2025-06-13 22:16:47 -05:00
motogp-bit
b5304c68b5
Mafia: Fix /mafia resetgame (#11192)
Co-authored-by: HoeenHero <HoeenCoder@users.noreply.github.com>
2025-06-12 11:14:17 -04:00
Lucas
6007bdc0b9
Mafia: Improve host/gameban (#11036)
* Improve host/gameban

- Allow for offline namehostban and namegameban.
- Notify users when they get host and gamebanned.
- Fix hostbans, which did not work at all.
- Fix host and gamebanned users from being able to subhost

* Change aliases and remove gameban unhostbanning.
2025-06-11 22:03:43 -04:00
Mia
92f5871309 Ladder tours: Properly force battles public 2025-06-10 17:42:00 -05:00
Mia
5e61465955 Ladder trackers: Adjust help 2025-06-09 19:20:30 -05:00
Lucas
71041ecfe1
Mafia: add maximum role length. (#11064)
Today, a bug was found where using revealas on a long role crashed PS!

I alleviated this by adding a maximum role length (instead of having it be uncapped, as currently people could spam PS using unlimited length roles) and moving the 'infinite loop' check to not be triggered by long roles.


Co-authored-by: Meijer,L. (Lucas) <l.meijer6@students.uu.nl>
2025-06-09 18:47:52 -04:00
Kris Johnson
92ed7a4243 /formathelp: Fix crash 2025-06-09 14:16:53 -06:00
Dieter Reinert
dd96c0de95
Mafia: Fix crash when distributing roles with insufficient roles (#11183) 2025-06-07 09:18:06 -07:00
Mia
48ba18608b Ladder tours: Run notifications at the beginning of games, not end 2025-06-06 11:54:23 -05:00
cheesetheorange
6522f7987b
Scavengers: Fix scrollbars (#11176) 2025-06-04 19:15:44 -07:00
Mia
9560f87ebd Remove accidentally-committed debug info 2025-06-04 16:04:59 -05:00
Mia
9f8e8acd53 Fix typo 2025-06-04 12:54:47 -05:00
Mia
8b6964f060 Ladder tours: Do not save while loading 2025-06-04 12:52:22 -05:00
Kris Johnson
e26eadfa4c Ladder Tracker: Don't log the IP of the user setting a tracker 2025-06-04 11:36:16 -06:00
Kris Johnson
7f69e2893d Revert "Return the right error on /searchlog (#11174)"
This reverts commit a94972bbd2.
2025-06-04 11:21:49 -06:00
Mia
bde88764cb
Add a plugin to support native ladder tour tracking (#11016) 2025-06-03 23:11:22 -05:00
Sergio Garcia
9a2c4739b0
Improve chatlog error message when disabled (#11173) 2025-06-03 15:22:54 -07:00
Sergio Garcia
a94972bbd2
Return the right error on /searchlog (#11174) 2025-06-03 15:20:28 -07:00
Lucas
de1d24e4eb
OMs: add Bad 'n Boosted data command (#11165)
* Add bnb command

* Update server/chat-plugins/othermetas.ts

---------

Co-authored-by: Meijer,L. (Lucas) <l.meijer6@students.uu.nl>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-06-02 01:21:20 -06:00
FeluciaPS
fa88abb5d6
Add /dm as a /pm alias (#11154) 2025-05-30 16:33:28 -07:00
Guangcong Luo
cd20be423f
Fix timer for mid-turn requests (#11127) 2025-05-28 17:07:41 -07:00
Guangcong Luo
66018a56b8 Fix ticket spacing 2025-05-28 16:30:30 -07:00
PartMan
4b2ac032d6
Pages: Notify bots when a user leaves a bot page (#11136) 2025-05-26 11:45:52 -07:00
Guangcong Luo
17f8fbc46a Unbold 5000 in auction help message 2025-05-25 18:58:33 -07:00
Sergio Garcia
b81ff9a69a
Remove useless spreads (#11132) 2025-05-24 16:19:48 -07:00
Guangcong Luo
e07080ce5c
Support fuzzy searching /dt etc (#11124)
This add's the teambuilder's fuzzy matching to /dt and similar commands.
2025-05-23 00:26:23 -07:00
dot-Comfey
8f57aa50bf
Help Tickets: Fix claim button text for text tickets (#10978)
Nitpick; the button to check out a text ticket shows as "Claim" when someone else is already looking at the ticket or it is already closed, which doesn't really make sense.
2025-05-22 13:11:46 -06:00
Guangcong Luo
df8a236c16 Teams: Hardcode no "Cathy" alias
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-05-19 19:21:44 -07:00
skymin3
a58e184872
Commands: Update help FAQ and improve !faq fails (#11118)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
https://www.smogon.com/forums/threads/clean-up-update-error-message-for-faq.3764560/ 
!faq fails no longer send the failed message message in chat, this is very helpful for room auth who are the users of broadcast commands
For whatever reason '!faq all' fails used a replybox? I can't think of a single non dev command that uses visible replyboxes in chat for fails, so changed this for an errorReply.
I cleaned up the wording of the /help faq, and I added some topics that were not there previously.
2025-05-19 01:18:28 -07:00
Lucas
5e9d392c28
Scavengers: Add Pointless twist (#11044) 2025-05-18 08:08:56 -07:00
pyuk-bot
0ee3291761
Teams: Automatically remove empty moveslots (#11119)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-17 21:36:44 -07:00
HoeenHero
7f4f4fe584 Timer: Properly detect first turn when automatically starting the timer
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-17 09:08:24 -04:00
Guangcong Luo
c5e63f84ab Fix crash when restarting with active Bo3
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-16 10:42:56 -07:00
Guangcong Luo
f13fe4495b Fix timer bug
nextRequest is no longer called on all players simultaneously,
meaning turnSecondsLeft might not be initialized when the timer starts.
2025-05-16 10:25:50 -07:00
Guangcong Luo
c5ef8ea3e5 Update timer for requests after updates
I figured PR #11105 would have some unintended side effect, but this
one isn't bad at all. There's no longer an easy way to tell whether
requests are move requests or not, but it's easy enough to instead
track the current turn.
2025-05-16 09:15:50 -07:00
skymin3
012b6716fb
Have invalid !rfaq fail over to !faq (#11096)
* !rfaq fail over to !faq 

Approved Suggestion: https://www.smogon.com/forums/threads/have-rfaq-fail-over-to-faq-if-a-match-is-not-found.3687458/ 

Code calls for RFAQ topics if that fails it checks the FAQ topic list. Sounds straightforward until you realize the faq broadcast fail command is archaic and for some reason the failed FAQ broadcast message still goes through on top of the actual faq error return message, along with the faq help, it's very messy I might just fix that next. This is bypassed by having the run broadcast call AFTER the topic is read as valid, so none of this nonsense can happen. I really thought this would be easy, turns out, not really (atleast for me).
2025-05-13 12:00:19 -07:00
Guangcong Luo
fe45b7d1bf Add |queryresponse|teamupdate| for /teams 2025-05-13 10:42:37 -07:00
skymin3
80c1460db8
Improve error messages shown to non-autoconfirmed (#11057)
https://www.smogon.com/forums/threads/improve-the-error-messages-shown-to-non-autoconfirmed-users-trying-to-access-certain-features.3737016/#post-10532853

A few of the non-autoconfirm error messages don't explain what autoconfirm means, which a new user likely doesn't know what autoconfirm is.
2025-05-13 09:12:52 -07:00
Kris Johnson
48d4a386b7 /roompromote: Fix punctuation on messages logged to staff room 2025-05-13 09:32:57 -06:00
Guangcong Luo
a7489f0995 Fix /removedaily with two args
Fixes #11103
2025-05-12 17:45:59 -07:00
shrianshChari
f2c7891775
UNO: Notify player if drawn card cannot be played (#11069) 2025-05-08 14:28:09 -07:00
Guangcong Luo
b979451e76 Fix uploading packed teams
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Packed teams weren't supported because `splitFirst` was called with
too high a limit. This fixes that.
2025-05-07 20:20:14 -07:00
Guangcong Luo
23c387f4a0 Add privacy to |queryresponse|teamupload|
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-07 19:45:01 -07:00
Mia
9a670548fa Teams: Account for OMs in validation 2025-05-07 20:14:52 -05:00
slainey
548f6911e9
Daily Spotlight: Add Delete button in list page (#11065)
---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-05-06 22:07:38 -07:00
Guangcong Luo
42d52e36e0 Refactor spotlights
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Fix /removedaily, adding a new "all" option to work like it's
documented to work, and fix the documentation.

Also remove support for legacy image format. A lot of functions were
async that didn't need to be.

Also remove an entirely unused sorting pass mistakenly introduced in
11ab3d83f8
(The queue was sorted, then immediately ignored to iterate it by index,
which is for the best, because showing the queue in any order other
than queue order is not useful.)
2025-05-05 07:05:59 -07:00
Guangcong Luo
a1e9066f9e Use class="details" and class="gray" 2025-05-05 04:43:05 -07:00
Karthik Bandagonda
6d7778167d
Auctions: Auto create players when using assignplayer (#11085)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-03 11:41:24 -05:00
HiZo
e7c5f126da
Teams: Sanitize OM Nicknames (#11068)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-04-27 20:51:10 -07:00
Mia
f2290ced37 Teams: Improve note on sharing teams onsite vs offsite
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-27 13:07:32 -05:00
TomOfTomKat
78bd34e2d9
Info: Update /smogonintro links (#11058)
Removed outdated links in /smogoninfo and replaced them with up to date ones:

https://www.smogon.com/forums/threads/introduction-to-smogon.3710821/
https://www.smogon.com/forums/threads/smogon-discord-server-directory.3652546/
2025-04-25 21:13:24 -06:00
TomOfTomKat
f86f08cb9a
Info: Update /tier (#11062)
Replace outdated (like, since XY outdated) links with current links.

I don't *love* dumping users at the Smogon Metagames forum, but there is no where else I am aware of that has all of our formats listed out.

Also updated the description to explain how /tier works and explain what type of information it contains.
2025-04-25 20:59:09 -06:00
slainey
6d455ab03e
Moderation: Clarify duration of default roombans (#11046)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
https://www.smogon.com/forums/threads/clarification-on-how-long-a-ban-lasts.3761482/ 

2 day bans do not say the amount of time which can be confusing to new users as they think a room ban is permanent. This commit does so without influencing week room ban text logs which already do note the 1 week time limit. This is an approved suggestion on the forums as well.
2025-04-24 07:05:13 -07:00
WifiLatency
9c1457ee9b
/ds: Collapsibles New Styling (#11041)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-04-21 05:07:44 -07:00
Kris Johnson
793fee5467 GitHub: Send HTML boxes through /raw 2025-04-20 23:40:13 -06:00
Marty-D
535657e766
Add new avatars
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-04-18 18:03:29 -04:00
Guangcong Luo
57380ae0b5 Redesign Smogtours plugin
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-17 21:02:00 -07:00
Alex "Mathy
d249e388e4
FFA/Multi: Fix simultaneous timeouts (#10311)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-17 20:47:39 -05:00
Alex "Mathy
6793b8a6ab
Fix timer not ending when player uses /leavegame (#11035) 2025-04-17 20:47:14 -05:00
Guangcong Luo
cc1f5c043f Redesign /tours
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-17 04:26:58 +00:00
Kris Johnson
a251474697 /tours: Remove `target="_blank" from room URLs 2025-04-16 21:21:26 -06:00
Kris Johnson
71f784c180 Tournaments: Make /tours usable in PMs/console 2025-04-16 21:03:51 -06:00
Lucas
32f62518f7
Mafia: Allow playercap to be changed as long as the game has not started (#11033)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-16 17:28:24 -04:00
Aurastic
777ce4d38a
Increase /addhtmlfaq character limit 8192 to 10000 (#11032) 2025-04-16 13:24:08 -07:00
Mia
77d0732af3 Chat: Add clarifying message to pages that require logins 2025-04-16 13:13:02 -05:00