]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - bin/optionsgen.py
Remove QuakeNet specifics
[irc/quakenet/qwebirc.git] / bin / optionsgen.py
index f9982835abb99f015af279f250a435585a0110e7..d8e85a6801de7932ef87fd3ffe14b78777ac47c3 100644 (file)
@@ -20,5 +20,14 @@ def get_options():
       validFirstChar=config.NICKNAME_VALID_FIRST_CHAR,
       validSubChars=config.NICKNAME_VALID_SUBSEQUENT_CHARS
     )
-    
+
+  if hasattr(config, "HELP_URL") and config.HELP_URL:
+    options["helpURL"] = config.HELP_URL
+
+  if hasattr(config, "LOGO_URL") and config.LOGO_URL:
+    options["logoURL"] = config.LOGO_URL
+
+  if hasattr(config, "ACCOUNT_WHOIS_COMMAND") and config.ACCOUNT_WHOIS_COMMAND:
+    options["accountWhoisCommand"] = config.ACCOUNT_WHOIS_COMMAND
+
   return json.dumps(options)