X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/blobdiff_plain/57f70c51120a6d154581a9b31e27a3b7a54ea8bb..5d52e82c35f1b30aecf3fa47a207e17b48c1710e:/bin/optionsgen.py diff --git a/bin/optionsgen.py b/bin/optionsgen.py index e288b8e..4b9dd87 100644 --- a/bin/optionsgen.py +++ b/bin/optionsgen.py @@ -10,7 +10,9 @@ def get_options(): baseURL=config.BASE_URL, staticBaseURL=config.STATIC_BASE_URL, dynamicBaseURL=config.DYNAMIC_BASE_URL, - validateNickname=False + dynamicConfiguration=False, + validateNickname=False, + customMenuItems=[] ) if hasattr(config, "NICKNAME_VALIDATE") and config.NICKNAME_VALIDATE: @@ -24,4 +26,16 @@ def get_options(): if hasattr(config, "HELP_URL") and config.HELP_URL: options["helpURL"] = config.HELP_URL + if hasattr(config, "LOGO_URL"): + options["logoURL"] = config.LOGO_URL + + if hasattr(config, "CUSTOM_MENU_ITEMS"): + options["customMenuItems"] = config.CUSTOM_MENU_ITEMS + + 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)