get rid of evil tabs so I can actually read this in something other than vi :)

This commit is contained in:
alecf%netscape.com 2000-01-07 08:24:35 +00:00
parent 48ca57f1e2
commit 402228ea38

View File

@ -44,17 +44,13 @@ function onInit() {
protocolinfo = Components.classes["component://netscape/messenger/protocol/info;type=" + type].getService(Components.interfaces.nsIMsgProtocolInfo);
if (loginNameInput.value == "") {
if (protocolinfo.requiresUsername) {
// since we require a username, use the uid from the email address
var email = document.getElementById("identity.email").value;
var emailParts = email.split("@");
loginNameInput.value = emailParts[0];
}
else {
// leave it blank.
}
if (protocolinfo.requiresUsername) {
// since we require a username, use the uid from the email address
var email = document.getElementById("identity.email").value;
var emailParts = email.split("@");
loginNameInput.value = emailParts[0];
}
}
}