Fix unicode names in net game
authorunc0rr
Sat, 26 Aug 2006 10:54:13 +0000
changeset 125 0532e70b1ce4
parent 124 75b892eff74d
child 126 93df479aa1b9
Fix unicode names in net game
QTfrontend/netclient.cpp
QTfrontend/netclient.h
--- a/QTfrontend/netclient.cpp	Sat Aug 26 09:41:33 2006 +0000
+++ b/QTfrontend/netclient.cpp	Sat Aug 26 10:54:13 2006 +0000
@@ -184,8 +184,9 @@
 	}
 }
 
-void HWNet::ParseLine(const QString & msg)
+void HWNet::ParseLine(const QByteArray & line)
 {
+	QString msg = QString::fromUtf8 (line.data(), line.size());
 	//QMessageBox::information(0, "", msg);
 	if (IRCmsg_cmd_text->exactMatch(msg))
 	{
--- a/QTfrontend/netclient.h	Sat Aug 26 09:41:33 2006 +0000
+++ b/QTfrontend/netclient.h	Sat Aug 26 10:54:13 2006 +0000
@@ -112,7 +112,7 @@
 	void RawSendNet(const QString & buf);
 	void RawSendNet(const QByteArray & buf);
 
-	void ParseLine(const QString & msg);
+	void ParseLine(const QByteArray & line);
 	void msgcmd_textHandler(const QString & msg);
 	void msgnumber_paramHandler(const QString & msg);
 	void msgwho_cmd_targetHandler(const QString & msg);