summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-16 13:13:07 +0000
committerErik Johnston <erik@matrix.org>2015-03-16 13:13:07 +0000
commit8bad40701b00cbbedd5bf1f4c32a2f7ac77b200b (patch)
tree6566a4ad93d95ce2111d7a8a94a4e01c1ee502c2 /synapse
parentUse 403 instead of 400 (diff)
downloadsynapse-8bad40701b00cbbedd5bf1f4c32a2f7ac77b200b.tar.xz
Comment.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/config/registration.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/config/registration.py b/synapse/config/registration.py
index 3fed8364c7..4401e774d1 100644
--- a/synapse/config/registration.py
+++ b/synapse/config/registration.py
@@ -25,6 +25,9 @@ class RegistrationConfig(Config):
     def __init__(self, args):
         super(RegistrationConfig, self).__init__(args)
 
+        # `args.disable_registration` may either be a bool or a string depending
+        # on if the option was given a value (e.g. --disable-registration=false
+        # would set `args.disable_registration` to "false" not False.)
         self.disable_registration = bool(
             distutils.util.strtobool(str(args.disable_registration))
         )