//--- Method(s) ---
public static void login(Server server, boolean newUser) throws IOException
{
Preferences prefs = Preferences.getInstance();
NapPreferences napPrefs = NapPreferences.getInstance();
String nick = server.getUsername();
String password = server.getPassword();
String email = server.getEmail();
String info = napPrefs.getClientInfo();
int linkSpeed = prefs.getLinkType();
if (newUser) {
server.send(new NewUserLoginMessage(nick, password,
server.getLocalPort(), info,linkSpeed, email));
}