summary refs log tree commit diff
path: root/docs/spam_checker.md
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-05-08 19:25:48 +0100
committerGitHub <noreply@github.com>2020-05-08 19:25:48 +0100
commit67feea8044562764b04c4968ebf159b44eb59218 (patch)
treed35c110e02239d88d98165a46fc11e8ec240852b /docs/spam_checker.md
parentImplement OpenID Connect-based login (#7256) (diff)
downloadsynapse-67feea8044562764b04c4968ebf159b44eb59218.tar.xz
Extend spam checker to allow for multiple modules (#7435)
Diffstat (limited to 'docs/spam_checker.md')
-rw-r--r--docs/spam_checker.md19
1 files changed, 12 insertions, 7 deletions
diff --git a/docs/spam_checker.md b/docs/spam_checker.md
index 5b5f5000b7..eb10e115f9 100644
--- a/docs/spam_checker.md
+++ b/docs/spam_checker.md
@@ -64,10 +64,12 @@ class ExampleSpamChecker:
 Modify the `spam_checker` section of your `homeserver.yaml` in the following
 manner:
 
-`module` should point to the fully qualified Python class that implements your
-custom logic, e.g. `my_module.ExampleSpamChecker`.
+Create a list entry with the keys `module` and `config`.
 
-`config` is a dictionary that gets passed to the spam checker class.
+* `module` should point to the fully qualified Python class that implements your
+  custom logic, e.g. `my_module.ExampleSpamChecker`.
+
+* `config` is a dictionary that gets passed to the spam checker class.
 
 ### Example
 
@@ -75,12 +77,15 @@ This section might look like:
 
 ```yaml
 spam_checker:
-  module: my_module.ExampleSpamChecker
-  config:
-    # Enable or disable a specific option in ExampleSpamChecker.
-    my_custom_option: true
+  - module: my_module.ExampleSpamChecker
+    config:
+      # Enable or disable a specific option in ExampleSpamChecker.
+      my_custom_option: true
 ```
 
+More spam checkers can be added in tandem by appending more items to the list. An
+action is blocked when at least one of the configured spam checkers flags it.
+
 ## Examples
 
 The [Mjolnir](https://github.com/matrix-org/mjolnir) project is a full fledged