function qwebirc_ui_onbeforeunload(e) { /* IE sucks */
- var message = "This action will close all active IRC connections.";
- var e = e || window.event;
- if(e)
- e.returnValue = message;
- return message;
+ if(qwebirc.connected) {
+ var message = "This action will close all active IRC connections.";
+ var e = e || window.event;
+ if(e)
+ e.returnValue = message;
+ return message;
+ }
}
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(",");