QMessageBox::critical(this,tr("Error"),tr("Invalid username.\nYou may only use A-Z, a-z, 0-9, _, ., and - in your username."));
break;
caseResponse::RespRegistrationRequired:
QMessageBox::critical(this,tr("Error"),tr("This server requires user registration."));
if(QMessageBox::question(this,tr("Error"),tr("This server requires user registration. Do you want to register now?"),QMessageBox::Yes|QMessageBox::No)==QMessageBox::Yes){
actRegister();
}
break;
caseResponse::RespAccountNotActivated:{
boolok=false;
QStringtoken=QInputDialog::getText(this,tr("Account activation"),tr("Your account has not been activated yet.\n You need to provide the activation token received in the activation email"),QLineEdit::Normal,QString(),&ok);