mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-25 11:45:30 +00:00
Comment.
This commit is contained in:
parent
250e143084
commit
8bad40701b
@ -25,6 +25,9 @@ class RegistrationConfig(Config):
|
|||||||
def __init__(self, args):
|
def __init__(self, args):
|
||||||
super(RegistrationConfig, self).__init__(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(
|
self.disable_registration = bool(
|
||||||
distutils.util.strtobool(str(args.disable_registration))
|
distutils.util.strtobool(str(args.disable_registration))
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user