QMessageBox::critical(this,tr("Error"),tr("Unknown login error: %1").arg(static_cast<int>(r))+tr("\nThis usually means that your client version is out of date, and the server sent a reply your client doesn't understand."));
QMessageBox::critical(this,tr("Error"),tr("Unknown registration error: %1").arg(static_cast<int>(r))+tr("\nThis usually means that your client version is out of date, and the server sent a reply your client doesn't understand."));