summary refs log tree commit diff
path: root/synapse/config/server.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-01 11:46:59 +0100
committerNeil Johnson <neil@matrix.org>2018-08-01 11:46:59 +0100
commit2c54f1c225365cc1da363a270f7f8d201193bc4a (patch)
treeb045e3f8a47f397dbba740fcc21f604f44965435 /synapse/config/server.py
parentremove errant print (diff)
downloadsynapse-2c54f1c225365cc1da363a270f7f8d201193bc4a.tar.xz
remove need to plot limit_usage_by_mau
Diffstat (limited to '')
-rw-r--r--synapse/config/server.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 9af42a93ad..a8014e9c50 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -69,9 +69,12 @@ class ServerConfig(Config):
 
         # Options to control access by tracking MAU
         self.limit_usage_by_mau = config.get("limit_usage_by_mau", False)
-        self.max_mau_value = config.get(
-            "max_mau_value", 0,
-        )
+        if self.limit_usage_by_mau:
+            self.max_mau_value = config.get(
+                "max_mau_value", 0,
+            )
+        else:
+            self.max_mau_value = 0
         # FIXME: federation_domain_whitelist needs sytests
         self.federation_domain_whitelist = None
         federation_domain_whitelist = config.get(