diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-16 13:13:07 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-16 13:13:07 +0000 |
commit | 8bad40701b00cbbedd5bf1f4c32a2f7ac77b200b (patch) | |
tree | 6566a4ad93d95ce2111d7a8a94a4e01c1ee502c2 | |
parent | Use 403 instead of 400 (diff) | |
download | synapse-8bad40701b00cbbedd5bf1f4c32a2f7ac77b200b.tar.xz |
Comment.
-rw-r--r-- | synapse/config/registration.py | 3 |
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)) ) |