summary refs log tree commit diff
path: root/synapse/config/registration.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-10-16 17:57:27 +0100
committerDavid Baker <dave@matrix.org>2017-10-16 17:57:27 +0100
commitc05e6015cc522b838ab2db6bffd494b017cf8ec6 (patch)
tree1c81e69e0d474630ea27e2a666ebc0281f205cda /synapse/config/registration.py
parentMerge pull request #2542 from matrix-org/dbkr/room_notif_no_glob (diff)
downloadsynapse-c05e6015cc522b838ab2db6bffd494b017cf8ec6.tar.xz
Add config option to auto-join new users to rooms
New users who register on the server will be dumped into all rooms in
auto_join_rooms in the config.
Diffstat (limited to 'synapse/config/registration.py')
-rw-r--r--synapse/config/registration.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/config/registration.py b/synapse/config/registration.py
index f7e03c4cde..9e2a6d1ae5 100644
--- a/synapse/config/registration.py
+++ b/synapse/config/registration.py
@@ -41,6 +41,8 @@ class RegistrationConfig(Config):
             self.allow_guest_access and config.get("invite_3pid_guest", False)
         )
 
+        self.auto_join_rooms = config.get("auto_join_rooms", [])
+
     def default_config(self, **kwargs):
         registration_shared_secret = random_string_with_symbols(50)
 
@@ -70,6 +72,10 @@ class RegistrationConfig(Config):
             - matrix.org
             - vector.im
             - riot.im
+
+        # Users who register on this homeserver will automatically be joined to these rooms
+        #auto_join_rooms:
+        #    - "#example:example.com"
         """ % locals()
 
     def add_arguments(self, parser):