Commit Graph

155 Commits

Author SHA1 Message Date
Mia
ae6b875c4b Moderation: Support using /unlockname on namelocked users 2022-04-09 10:19:53 -05:00
Mia
4a81c2ae14 Moderation: Alias /forceweeknamelock to /fwnl
Requested by staff.
2022-03-06 18:12:43 -06:00
Annika
99fffe2e4b Remove unnecessary code
Found these thanks to LGTM.com
2022-03-02 20:02:29 -08:00
Kris Johnson
7158628a13 /sectionleader: Fix error message 2022-01-15 14:33:46 -07:00
Mia
ccca367b13 Moderation: Require /weeknamelock to namelock a user with an exist lock longer than 2 days
This mistake keeps being made.
2022-01-13 21:35:09 -06:00
Distrib
4835729270
/roomauth: Add a line that says bolded names are online (#8609) 2022-01-05 18:03:42 -08:00
Distrib
6c49eb77f3
Moderation: Enable /htmldeclare for Room Owners (#8562)
PR for https://www.smogon.com/forums/threads/enable-htmldeclare-for-room-owners.3694127/
2021-12-09 13:07:06 -08:00
Mia
27ee2cf3fd
Restore abuse-monitor (#8557) 2021-12-08 12:49:03 -06:00
AeonicX7
dc463cf1bd
Allow global warns in adminlog (#8544) 2021-11-29 11:35:23 -08:00
Mia
8020862dcb Moderation: Fix /noforcerename
Previously, since target was whitelisted, it counted the reason as part of the whitelisted name.
2021-11-15 11:53:37 -06:00
Mia
19fe946945 Moderation: Support warning users with no user object
We already had support for this, it just had an unnecessary gate on 'is there a user object?'.
2021-11-13 16:37:07 -06:00
Guangcong Luo
be0cee5a33
Refactor getIdentity not to take roomids (#8528) 2021-11-12 22:05:59 -08:00
Mia
09be6e8439 Moderation: Add the alias weekroomban to /roomban
Requested for clarity.
2021-11-10 09:27:46 -06:00
Mia
ea9993fcec Update max reason length for moderation commands 2021-11-04 11:48:45 -05:00
Mia
bd38434a2b Punishments: Don't count custom room punishments toward PunishmentMonitor 2021-10-24 20:02:17 -05:00
Mia
88ef7fdf1f
Support marksharing ranges (#8498) 2021-10-24 12:44:46 -07:00
Volco
f96762b185
Fix crash in room promotions (#8500) 2021-10-23 23:25:56 -07:00
FeluciaPS
f3aaba2dd4
Specify Global for global promotion messages (#8499) 2021-10-21 20:12:58 -07:00
Mia
d45590816b
/noforcerename: Use Utils.splitFirst
This makes it so we don't accidentally allow guest names (since it no longer does users.get)
2021-10-21 08:26:48 -05:00
Mia
8a06826bfa Add /noforcerename
Requested by Aeonic. This makes it so the Punishments.namefilterwhitelist now makes users outright immune to FRs, instead of just having it logged / immune to one FR. If they're on the namefilter whitelist, they have to be taken off before they can be renamed, as opposed to just being able to log onto the acc anyway. It also ensures only US can add / remove to that list.
2021-10-11 19:19:29 -05:00
Mia
f80c066434 Moderation: Properly modlog ips for yearlocks 2021-10-06 16:07:00 -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
a7d27dde3a Add help for all commands in server/chat-commands/ 2021-09-23 12:11:55 -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
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
a2890bc7d1 Moderation: Log offline warns to Staff 2021-09-16 09:07:17 -05:00
Mia
9b435b2f0e Moderation: Add hints about forcelock and forcenamelock 2021-09-12 20:10:42 -05:00
Mia
6ac4309b94 Moderation: Make /warn work in PMs
Useful functionality. Plus, people were confused why it worked for other punishments and not this. If necessary, Wob also approved of this.
2021-09-11 21:09:01 -05:00
Mia
7811795344
Handle new TypeScript version (#8449)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2021-08-30 20:11:44 -07:00
Mia
8229357586 Add some useful aliases to /yearlockname 2021-08-04 15:31:42 -05:00
Quinton Lee
b5130dfb57
Commands: Add feedback to /notifyuser (#8411) 2021-07-25 15:33:20 -07:00
Mia
d5bb0945ff Moderation: Stop forcing /globalban on untrusted users
This caused issues with banning offline users, and while I was fixing it I started to question why this was necessary at all.
2021-07-22 02:22:52 -05:00
Kris Johnson
40e36c8f38
Make adjustments to Section Leaders (#8387) 2021-07-16 12:51:29 -07:00
PartMan
ddec31a24f
Add /notifyuser (#8394) 2021-07-16 12:50:45 -07:00
Annika
56754afb42 Punishments: Remove getPunishType functions
These are poorly designed as they only return one punishments, but users can now have several.
2021-06-29 17:55:45 -07:00
Mia
fe338a84f5
Support locking usernames for a year (#8371) 2021-06-22 15:10:16 -07:00
Mia
b0e839e1e8 Moderation: Only log /rangeban to Staff 2021-06-15 18:16:06 -05:00
Annika
b712278fd0
Use global punishments instead of fake rooms (#8350) 2021-06-02 21:54:33 -07:00
Mia
09e298f15b
Punishments: Support giving multiple punishments to one user (#8265) 2021-05-31 11:06:01 -07:00
Mia
c29a9a1eb1 Moderation: Explicitly note if punishments are done with no user object 2021-05-27 21:29:59 -05:00
Annika
fd9b922e86 /sectionleader: Get user object exactly 2021-05-27 11:21:35 -07:00
Mia
961e5b90d0 /clearlines: Trim reasons 2021-05-24 11:34:26 -05:00
Mia
12b319e713 Helptickets: Add claiming and add more punishment types to text tickets 2021-05-13 08:34:52 -05:00
Mia
79b716bb06 Moderation: Show forcerenames to regular users in helptickets
Requested by Ransei.
2021-05-11 12:08:53 -05:00
Annika
2fd6153e70
Hide lines from locked/banned users' alts (#8277) 2021-05-10 10:41:12 -07:00
Mia
64b3b554c2 Usersearch: Add namelock buttons
Requested by staff, approved by Ransei.
2021-05-05 16:24:01 -05:00
Guangcong Luo
574bb28bbe
Implement Utils.Multiset (#8260)
If you grep the codebase for `|| 0) + 1` you get a lot of results,
all of which would be better implemented with a multiset.
2021-05-04 21:53:23 -07:00
Kris Johnson
70a06de929
PunishmentMonitor: Fix "(banned: )" in autolocks (#8256) 2021-05-04 21:50:04 -07:00