]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/panes/options.js
add spinner to connect dialog
[irc/quakenet/qwebirc.git] / js / ui / panes / options.js
index 6c6bf0884d21acab3000844b25f582d3a5943281..1d1f73c6b4a99d58e5f7b648bad62b05cde0d99c 100644 (file)
@@ -37,12 +37,7 @@ qwebirc.config.DEFAULT_OPTIONS = [
   [2, "DEDICATED_MSG_WINDOW", "Send privmsgs to dedicated messages window", false],
   [4, "DEDICATED_NOTICE_WINDOW", "Send notices to dedicated message window", false],
   [3, "NICK_OV_STATUS", "Show status (@/+) before nicknames in channel lines", true],
-  [5, "ACCEPT_SERVICE_INVITES", "Automatically join channels when invited by Q", false, {
-    settableByURL: false
-  }],
-  [6, "USE_HIDDENHOST", "Hide your hostmask when authed to Q (+x)", true, {
-    settableByURL: false
-  }],
+  /* 5 and 6 are reserved */
   [8, "LASTPOS_LINE", "Show a last position indicator for each window", true, {
     enabled: qwebirc.ui.supportsFocus
   }],
@@ -70,6 +65,15 @@ qwebirc.config.DEFAULT_OPTIONS = [
   }]
 ];
 
+qwebirc.config.QUAKENET_OPTIONS = [
+  [5, "ACCEPT_SERVICE_INVITES", "Automatically join channels when invited by Q", false, {
+    settableByURL: false
+  }],
+  [6, "USE_HIDDENHOST", "Hide your hostmask when authed to Q (+x)", true, {
+    settableByURL: false
+  }]
+];
+
 qwebirc.config.DefaultOptions = null;
 
 qwebirc.config.Input = new Class({
@@ -313,7 +317,17 @@ qwebirc.ui.Options = new Class({
     }.bind(this));
   },
   __configureDefaults: function() {
-    qwebirc.config.DefaultOptions = qwebirc.config.DEFAULT_OPTIONS.map(function(x) {
+    var combined = qwebirc.config.DEFAULT_OPTIONS.slice(0);
+
+    var xo = null;
+    if(this.ui.options.networkName == "QuakeNet") /* HACK */
+      xo = qwebirc.config.QUAKENET_OPTIONS;
+
+    if(xo)
+      for(var i=0;i<xo.length;i++)
+        combined.push(xo[i]);
+
+    qwebirc.config.DefaultOptions = combined.map(function(x) {
       var optionId = x[0];
       var prefix = x[1];
       var label = x[2];