QMessageBox::critical(this,tr("Error"),tr("Failed to join the room: it doesn't exists on the server."));
return;
caseResponse::RespContextError:
QMessageBox::critical(this,tr("Error"),tr("The server thinks you are in the room but Cockatrice is unable to display it. Try restarting Cockatrice."));
return;
caseResponse::RespUserLevelTooLow:
QMessageBox::critical(this,tr("Error"),tr("You do not have the required permission to join this room."));
return;
default:
QMessageBox::critical(this,tr("Error"),tr("Failed to join the room due to an unknown error: %1.").arg(r.response_code()));