QTfrontend/game.cpp
changeset 2405 3b8607ac32c6
parent 2403 6c5d504af2ba
child 2428 6800f8aa0184
--- a/QTfrontend/game.cpp	Sat Oct 03 12:35:24 2009 +0000
+++ b/QTfrontend/game.cpp	Sat Oct 03 12:38:56 2009 +0000
@@ -225,9 +225,9 @@
 			QString msgbody = QString::fromUtf8(msg.mid(2).left(size - 4));
 			emit SendChat(msgbody);
 			// FIXME: /me command doesn't work here
-			//QByteArray buf;
-			//HWProto::addStringToBuffer(buf, QString("s\x01%1: %2\x20\x20").arg(config->netNick()).arg(msgbody));
-			//demo.append(buf);
+			QByteArray buf;
+			HWProto::addStringToBuffer(buf, "s" + HWProto::formatChatMsg(config->netNick(), msgbody) + "\x20\x20");
+			demo.append(buf);
 			break;
 		}
 		case 'b': {