]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - bin/optionsgen.py
add dynamic configuration support
[irc/quakenet/qwebirc.git] / bin / optionsgen.py
index 541ce1907a13c31215341fa149810c89e35c14ed..4b9dd875b605f32729bff2dae11982e3b5a9eb0a 100644 (file)
@@ -10,6 +10,7 @@ def get_options():
     baseURL=config.BASE_URL,
     staticBaseURL=config.STATIC_BASE_URL,
     dynamicBaseURL=config.DYNAMIC_BASE_URL,
+    dynamicConfiguration=False,
     validateNickname=False,
     customMenuItems=[]
   )
@@ -34,4 +35,7 @@ def get_options():
   if hasattr(config, "ACCOUNT_WHOIS_COMMAND") and config.ACCOUNT_WHOIS_COMMAND:
     options["accountWhoisCommand"] = config.ACCOUNT_WHOIS_COMMAND
 
+  if hasattr(config, "DYNAMIC_CONFIGURATION") and config.DYNAMIC_CONFIGURATION:
+    options["dynamicConfiguration"] = True
+
   return json.dumps(options)