]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/qwebircinterface.js
change faq pane into help pane
[irc/quakenet/qwebirc.git] / js / qwebircinterface.js
index 1d7f249a6701d4e9a34a52deff10520304a62a54..09dca62ee39c43a10fe3f177361b6763644233d4 100644 (file)
@@ -28,6 +28,7 @@ qwebirc.ui.Interface = new Class({
     tlightness: null,
     uiOptionsArg: null,
     nickValidation: null,
+    helpURL: null,
     dynamicBaseURL: "/",
     staticBaseURL: "/"
   },
@@ -38,6 +39,7 @@ qwebirc.ui.Interface = new Class({
     qwebirc.global = {
       dynamicBaseURL: options.dynamicBaseURL,
       staticBaseURL: options.staticBaseURL,
+      helpURL: options.helpURL,
       nicknameValidator: $defined(options.nickValidation) ? new qwebirc.irc.NicknameValidator(options.nickValidation) : new qwebirc.irc.DummyNicknameValidator()
     };
 
@@ -88,8 +90,9 @@ qwebirc.ui.Interface = new Class({
           
             for(var i=0;i<chans.length;i++) {
               chans2[i] = chans[i];
-            
-              if(chans[i].charAt(0) != '#')
+
+                var prefix = chans[i].charAt(0);
+                if(prefix != '#' && prefix != '&')
                 chans2[i] = "#" + chans2[i]
             }
             cdata[0] = chans2.join(",");