QTfrontend/newnetclient.cpp
changeset 1905 b1ec8db513f2
parent 1899 5763f46d7486
child 1925 ec923e56c444
--- a/QTfrontend/newnetclient.cpp	Wed Mar 18 22:02:55 2009 +0000
+++ b/QTfrontend/newnetclient.cpp	Sat Mar 21 10:49:58 2009 +0000
@@ -19,6 +19,7 @@
 
 #include <QDebug>
 #include <QInputDialog>
+#include <QCryptographicHash>
 
 #include "hwconsts.h"
 #include "newnetclient.h"
@@ -86,7 +87,7 @@
 		return;
 	}
 	
-	RawSendNet(QString("CREATE%1%2").arg(delimeter).arg(room));
+	RawSendNet(QString("CREATE_ROOM%1%2").arg(delimeter).arg(room));
 	m_pGameCFGWidget->setEnabled(true);
 	m_pTeamSelWidget->setInteractivity(true);
 	isChief = true;
@@ -102,7 +103,7 @@
 	
 	loginStep++;
 
-	RawSendNet(QString("JOIN%1%2").arg(delimeter).arg(room));
+	RawSendNet(QString("JOIN_ROOM%1%2").arg(delimeter).arg(room));
 	m_pGameCFGWidget->setEnabled(false);
 	m_pTeamSelWidget->setInteractivity(false);
 	isChief = false;
@@ -447,7 +448,7 @@
 	if (lst[0] == "ASKPASSWORD") {
 		QString password = QInputDialog::getText(0, tr("Password"), tr("Enter your password:"), QLineEdit::Password);
 
-		QString hash = Hash::md5(password.toLatin1());
+		QString hash = QCryptographicHash::hash(password.toLatin1(), QCryptographicHash::Md5).toHex();
 
 		RawSendNet(QString("PASSWORD%1%2").arg(delimeter).arg(hash));
 		return;