Commit Graph

2477 Commits

Author SHA1 Message Date
Mia
f80c066434 Moderation: Properly modlog ips for yearlocks 2021-10-06 16:07:00 -05:00
Mia
8581a534d6 Helptickets: Don't refresh IP-Appeals after unlocking IPs 2021-10-06 12:50:59 -05:00
Mia
87a552a3fd Helptickets: Make ticketbans take the duration of the user's longest punishment
This is done where applicable (where the duration of a punishment is more than the default ticketban time would be). Approved / requested by Aeo.
2021-10-04 19:31:26 -05:00
Mia
a0227dfaeb /whois: Privatize more punishments to global staff
Roomstaff have no use for these. (Wob said this was OK).
2021-10-04 08:21:58 -05:00
Mia
83ccd6b0ee Helptickets: Strip HTML from ticket title attributes
This fucked up a bunch of HTML.
2021-10-03 19:11:37 -05:00
Mia
2d49d9642e Room-battle: Don't count clauses in the tiername when logging battles 2021-10-03 12:45:46 -05:00
Mia
3643e94ff7 Helptickets: Add commands to privatize/publicize ticket logs 2021-10-02 15:03:34 -05:00
Mia
c3a829cb3c Helptickets: Make inappropriate name tickets no longer list-only
It had little benefit. Weren't enough tickets to make it work.
2021-10-01 16:33:54 -05:00
Mia
149d5d70ac Helptickets: Fix text ticket button display 2021-10-01 08:58:36 -05:00
FeluciaPS
a032accccf
Add html pages to multiline commands (#8483) 2021-09-30 16:44:39 -05:00
Mia
c6804aa827 Helptickets: Stop double-escaping some HTML 2021-09-30 13:15:12 -05:00
Mia
0c2ed8724c Rooms: Support detecting when users join rooms 2021-09-30 08:09:59 -05:00
Mia
6e2d9644d7 Room-battle: Add some useful battle hooks 2021-09-30 08:06:00 -05:00
Mia
f2c9483496 Chat: Fix handling of default commands
This didn't handle command targets accurately - it still counted the first chunk (split by spaces) as part of the command, even though the handler defaulted to the provided default function. No one ever noticed this because no one used the 'default' name functionality.
2021-09-29 17:21:12 -05:00
Mia
c80cfb531b Support /friend [name] 2021-09-29 16:59:34 -05:00
Mia
217b7b9e0d Chat: Add '' as a default command override option
Nobody expects default, but everyone uses '' and gets surprised when /namespace [target] errors out with 'the command /namespace [target]' doesn't exist. This makes it so that now works.
2021-09-29 15:14:14 -05:00
Mia
7ec57bad4c Helptickets: Properly escape newlines in context
This is probably stupid but it works and doesn't have any other screwups (joining on html is dumb _but_ we escape all HTML out by that point so it's guaranteed to be unique at least)
2021-09-29 14:59:36 -05:00
Mia
6bb5c4ae7b Helptickets: Add /ht submit (and aliases) to the multiline whitelist 2021-09-29 14:25:59 -05:00
Mia
e5323e758a Chat: Make privateGlobalModAction not log to Staff room twice when used in Staff 2021-09-27 19:52:29 -05:00
Kris Johnson
c48eabfe1e
FIx build 2021-09-27 17:43:06 -06:00
Mia
9abb4f7b72 Chat: Clarify 'you are locked and cannot chat' messages for proxy locked users 2021-09-27 17:23:20 -05:00
Mia
3e472301f8 Helptickets: Improve IP-Appeal directions 2021-09-27 17:18:18 -05:00
Mia
41877078d2 Moderation: Update offline warn phrasing 2021-09-27 11:35:20 -05:00
Mia
77d81b33c9 Moderation: Have /namelock tempban names after the lock expires
Requested by DaWoblefet (for consistency, since namelocking a name and not having it tempbanned is confusingly inconsistent).
2021-09-27 11:08:11 -05:00
Mia
e685689a3b Usersearch: Fix duplicates in name list
also fixes some bugs with 'mia added 0 term to the usersearch name list', etc.
2021-09-26 12:40:47 -05:00
Kris Johnson
5788d395ca
Fix build 2021-09-26 11:26:49 -06:00
Mia
5587455b7f Helptickets: Show full names for inappropriate username tickets
Requested since sometimes people use symbols / etc that get removed otherwise (that might change the meaning).
2021-09-25 23:09:15 -05:00
Mia
2cc3eb122c Usersearch: Escape HTML in names 2021-09-25 19:58:36 -05:00
Mia
f1011ffd7b Add more help for chatlog commands 2021-09-23 12:48:29 -05:00
Mia
a7d27dde3a Add help for all commands in server/chat-commands/ 2021-09-23 12:11:55 -05:00
Mia
6cdfb14812 Fix build 2021-09-23 09:36:08 -05:00
Mia
8379e3923a Validate data:image inputs for media commands
This gives explicit messages to ensure people don't try to /show it.
2021-09-23 08:31:11 -05:00
Mia
37dd21bced Chat: Allow users to pm themselves through blockpms 2021-09-22 19:22:53 -05:00
Mia
d6415445d0 Improve offine forcerenames
This mostly just sets user.trackRename when the user tries to log in for the first time. Requested by DaWoblefet.
2021-09-22 19:13:07 -05:00
Mia
c19309c1ad Moderation: Support year-locking names
Approved by Aeonic and Teclis.
2021-09-20 18:10:28 -05:00
Mia
55ced133b6 Punishments: Fix validation of ranges in sharedIpBlacklist 2021-09-20 08:42:33 -05:00
Mia
a53f5ae84a Helptickets: Add better context messages for inapname tickets 2021-09-20 08:14:29 -05:00
Mia
24e1dcbe24 Ladders: Add timestamps to challenge notifications 2021-09-19 14:13:36 -05:00
PartMan
35a917d418
/help: Trim commands (#8461)
```
[09:45:39] @PartMan: !h status
Could not find help for '/status ' - displaying help for '/status' instead
/status [note] - Sets a short note as your status, visible when users click your username.
Use /clearstatus to clear your status message.
```
2021-09-18 15:54:42 -07:00
Mia
60998a00c9 Update /help automodchat 2021-09-18 11:58:21 -05:00
Mia
d3d2bacf10 Moderation: Make /modnote [userid] log the [userid] as the target user
Staff QoL. This will make notes of /mn [userid] show up under /mlid userid (or /ml user='username', etc).
2021-09-17 12:50:05 -05:00
Mia
6a1402a83e Helptickets: Move list-only types to a singular button in notifications 2021-09-16 15:12:50 -05:00
Mia
14fda9ff8b Helptickets: Properly block nomarkshared ranges from making IP-Appeal tickets 2021-09-16 14:10:40 -05:00
Mia
a2890bc7d1 Moderation: Log offline warns to Staff 2021-09-16 09:07:17 -05:00
Mia
c32ae39df3
Spotlights: Fix typo 2021-09-16 07:44:07 -05:00
Mia
038404a554 Rooms: Retain previous setting when automodchat is set
Also fixes a bug with the activation declaration saying it activated after 0 seconds.
2021-09-15 19:40:13 -05:00
Mia
c912e3bd45 Roomsettings: Fix /modjoin sync
This fixes https://www.smogon.com/forums/threads/bug-reports-v4-read-original-post-before-posting.3663703/post-8710045. This changes /modjoin sync so that (if there's no modchat set)  instead of looking for the lowest staff group (in order to set modchat), it looks for the lowest (non reg/whitelist) group that the user can set it to instead. Previously, it looked for the lowest group with the mute permission - bot, which regular users cannot set modchat to in battles.
2021-09-15 19:19:42 -05:00
Mia
6115f6928e Helptickets: Add help for /ht note 2021-09-15 15:14:50 -05:00
Mia
b355909ef0 UNO: Improve error messages
Closes #6780.
2021-09-15 14:46:35 -05:00
Mia
866722f70d Roomlogs: Don't count certain protocol messages for Room#nthMessageHandlers
Previously, join/leave/userstats/etc would all count against the nthMessageHandlers (which is relevant for repeats), and this is most definitely incorrect behavior.
2021-09-15 12:56:39 -05:00