Travis Ralston
38e22ee155
Add commands to add/remove protected rooms on the fly
2020-01-21 13:46:15 -07:00
Travis Ralston
c1ea98f55d
Fix logging for status command
2020-01-21 13:17:38 -07:00
Travis Ralston
959162c4a3
Support automatically redacting users for certain ban reasons
2019-12-09 19:56:12 -07:00
Travis Ralston
6753e7f780
Allow the redact command to take globs
2019-12-09 19:43:41 -07:00
Travis Ralston
7de3744875
Respect no-op in more places
2019-12-09 19:20:47 -07:00
Travis Ralston
f9e3c33935
Don't spam protection warnings, and ensure the user is redacted
...
We now always prioritize redaction over ban to ensure that the user gets removed from our rooms. This also means that the second image posted by a spammer is redacted after join.
This commit also improves the messaging a bit.
2019-12-09 19:15:51 -07:00
Travis Ralston
245b81262e
Fix linter
2019-12-04 19:28:49 -07:00
Travis Ralston
fd2343dd28
Add some null safety to ban lists
2019-12-04 19:28:31 -07:00
Travis Ralston
0879cd58a0
Actually fix ban command not always applying
...
Fixes https://github.com/matrix-org/mjolnir/issues/13
2019-12-04 19:28:28 -07:00
Travis Ralston
3be2da5c47
Automatically sync the ban lists after issuing a ban
...
Workaround for https://github.com/matrix-org/mjolnir/issues/13 .
Fixes https://github.com/matrix-org/mjolnir/issues/13
2019-12-04 19:28:24 -07:00
Travis Ralston
1b795c7b17
Add basic flooding protection too
2019-12-04 19:07:04 -07:00
Travis Ralston
d5f260b982
Add a protection system with a "first message is an image" demo
2019-12-04 18:51:03 -07:00
Travis Ralston
4f8b55c45f
Update matrix-bot-sdk
2019-12-04 18:46:00 -07:00
Travis Ralston
07c9c04169
Detect UISI errors from pantalaimon in the management room
2019-11-14 15:59:01 -07:00
Travis Ralston
778f9c3459
Add a command to deactivate a user
2019-11-14 15:44:13 -07:00
Travis Ralston
417673aeef
Test for ban reasons as well in autodetection
2019-11-13 21:46:20 -07:00
Travis Ralston
66a5775136
Make the [un]ban command smarter
...
Fixes https://github.com/matrix-org/mjolnir/issues/11
2019-11-13 21:38:19 -07:00
Travis Ralston
dd260091bb
Add a command to set a default ban list
2019-11-13 20:34:45 -07:00
Travis Ralston
40113a0760
Use the correct reference to Mjolnir's client
2019-11-11 14:31:25 -07:00
Travis Ralston
6018cd3ed3
Add more startup logging
2019-11-07 11:06:56 -07:00
Travis Ralston
b1fd36737f
Make the startup check less aggressive for joins
2019-11-07 11:05:52 -07:00
Travis Ralston
9f84a65598
Don't apply bans globally when membership changes
2019-11-07 11:00:41 -07:00
Travis Ralston
82214c6cd8
Avoid spamming the management room with errors
...
The intervals are arbitrarily defined.
Fixes https://github.com/matrix-org/mjolnir/issues/10
2019-11-06 19:17:11 -07:00
Travis Ralston
30e186ca9c
Add a config option to reduce homeserver load during ban checks
2019-11-06 18:54:59 -07:00
Travis Ralston
84135c5ff5
Update log handling for debugging
2019-11-06 18:46:49 -07:00
Travis Ralston
0575c56b74
Add a config flag to reduce logging noise
2019-10-31 09:55:34 -06:00
Travis Ralston
eccbac9ccf
Check if ACLs match before applying them
...
Fixes https://github.com/matrix-org/mjolnir/issues/9
2019-10-30 14:49:59 -06:00
Travis Ralston
12a3d6255d
Add a moderator's guide to Mjolnir
...
Fixes https://github.com/matrix-org/mjolnir/issues/6
2019-10-28 20:20:47 -06:00
Travis Ralston
354caa96c0
Appease the linter
2019-10-23 13:25:32 -06:00
Travis Ralston
bb6d457f98
Fix timeline filter
2019-10-18 16:38:27 +01:00
Travis Ralston
5cd89d5c4e
Fix handling of state events
2019-10-18 16:38:19 +01:00
Travis Ralston
2ea3bdccb3
Fix messaging for bans
2019-10-18 16:38:07 +01:00
Travis Ralston
5409f4916a
Add a way to actually unban people
2019-10-10 12:37:42 +01:00
Travis Ralston
8fbd918431
Add a rule import command
2019-10-10 11:30:52 +01:00
Travis Ralston
78b73153b7
Add a redact command
2019-10-09 15:53:37 +01:00
Travis Ralston
28f739a3a2
Ignore events sent by Mjolnir itself
2019-10-09 15:00:56 +01:00
Travis Ralston
adec9f58a6
Add a no-op mode
2019-10-09 14:51:30 +01:00
Travis Ralston
7501e3123a
Don't double report success for !mjolnir sync
2019-10-09 14:46:14 +01:00
Travis Ralston
cb20aefea3
Appease the linter
2019-10-09 11:29:01 +01:00
Travis Ralston
49468c5aab
Fix command processing for recent refactorings
2019-10-08 21:06:54 +01:00
Travis Ralston
05ab8f60c6
Add watch and unwatch commands
2019-10-08 20:58:31 +01:00
Travis Ralston
1f449a9fc1
Move list watching into Mjolnir class
2019-10-08 18:25:57 +01:00
Travis Ralston
9056634124
Don't mention updates for rooms we don't protect
2019-10-08 17:58:37 +01:00
Travis Ralston
aecc6e4882
Support multiple ban lists
2019-10-08 17:57:03 +01:00
Travis Ralston
49fd0ca3f6
Consider startup logging as verbose
2019-10-04 21:38:50 -06:00
Travis Ralston
d4171a36a2
Check permissions when power levels change in protected rooms
2019-10-04 21:36:19 -06:00
Travis Ralston
83e74af525
Add a command to perform permission checks
2019-10-04 21:26:38 -06:00
Travis Ralston
7bd23a17d9
Optionally perform permission checks on startup
2019-10-04 21:22:51 -06:00
Travis Ralston
383985c732
Correctly represent state in !mjolnir command
2019-10-04 21:22:18 -06:00
Travis Ralston
5e081e2246
Add an option to sync rooms on startup
2019-10-04 21:02:37 -06:00