X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/blobdiff_plain/74ee64b3cdc820cf306a832ff38cb2cfaef97b33..77e5d85fa0f84ddcc89b36771eec58999e497e55:/js/qwebircinterface.js diff --git a/js/qwebircinterface.js b/js/qwebircinterface.js index fa7b476..c1eb3c2 100644 --- a/js/qwebircinterface.js +++ b/js/qwebircinterface.js @@ -30,7 +30,8 @@ qwebirc.ui.Interface = new Class({ nickValidation: null, helpURL: null, dynamicBaseURL: "/", - staticBaseURL: "/" + staticBaseURL: "/", + cloak: false }, initialize: function(element, ui, options) { this.setOptions(options); @@ -68,6 +69,7 @@ qwebirc.ui.Interface = new Class({ window.addEvent("domready", function() { var callback = function(options) { + options.cloak = ui_.options.cloak; var IRC = new qwebirc.irc.IRCClient(options, ui_); IRC.connect(); window.onbeforeunload = qwebirc_ui_onbeforeunload; @@ -129,7 +131,10 @@ qwebirc.ui.Interface = new Class({ if(args.contains("randomnick") && args.get("randomnick") == 1) inick = this.options.initialNickname; - + + if(args.contains("cloak") && args.get("cloak") == 1) + this.options.cloak = true; + /* we only consider autoconnecting if the nick hasn't been supplied, or it has and it's not "" */ if(canAutoConnect && (!$defined(inick) || ($defined(inick) && (inick != "")))) { var p = args.get("prompt");