- GenericLoginBox(this.parentElement, callback, initialNickname, initialChannels, autoConnect, autoNick);
- /*if(autoConnect) {
- var c = initialChannels.split(",");
- var ctext;
-
- if(c.length > 1) {
- var last = c.pop();
- ctext = c.join(", ") + " and " + last;
- } else {
- ctext = c[0];
- }
-
- var nicktext;
- if(autoNick) {
- nicktext = "";
- } else {
- nicktext = " (as '" + initialNickname + "')"
- }
- if(confirm("Connect to IRC and join channels " + ctext + nicktext + "?"))
- callback({"nickname": initialNickname, "autojoin": initialChannels});
- return;
- }
-
- var nick = prompt("Nickname:", initialNickname);
- if(!nick) {
- alert("Aborted.");
- return;
- }
-
- var chans = prompt("Channels (seperate by comma):", initialChannels);
- callback({"nickname": nick, "autojoin": chans});
- */
+ qwebirc.ui.GenericLoginBox(this.parentElement, callback, initialNickname, initialChannels, autoConnect, autoNick);