} else {
this.selectWindow(this.windowArray[index - 1]);
}
-
- this.windowArray = this.windowArray.erase(window);
}
}
+ this.windowArray = this.windowArray.erase(window);
delete this.windows[window.client][window.identifier];
},
/*
initialize: function(parentElement, windowClass, uiName, options) {
this.parent(parentElement, windowClass, uiName, options);
window.addEvent("keydown", function(x) {
- if(!x.alt)
+ if(!x.alt || x.control)
return;
if(x.key == "a" || x.key == "A") {
}
});
-qwebirc.ui.NewLoginUI = new Class({
+qwebirc.ui.QuakeNetUI = new Class({
Extends: qwebirc.ui.StandardUI,
+ urlDispatcher: function(name, window) {
+ if(name == "qwhois") {
+ return function(auth) {
+ this.client.exec("/MSG Q whois #" + auth);
+ }.bind(window);
+ }
+
+ return this.parent(name);
+ }
+});
+
+qwebirc.ui.NewLoginUI = new Class({
+ Extends: qwebirc.ui.QuakeNetUI,
loginBox: function(callbackfn, initialNickname, initialChannels, autoConnect, autoNick) {
this.postInitialize();
var w = this.newCustomWindow("Connect", true, qwebirc.ui.WINDOW_CONNECT);