QTfrontend/game.cpp
changeset 2405 3b8607ac32c6
parent 2403 6c5d504af2ba
child 2428 6800f8aa0184
equal deleted inserted replaced
2404:8281eea32196 2405:3b8607ac32c6
   223 		case 's': {
   223 		case 's': {
   224 			int size = msg.size();
   224 			int size = msg.size();
   225 			QString msgbody = QString::fromUtf8(msg.mid(2).left(size - 4));
   225 			QString msgbody = QString::fromUtf8(msg.mid(2).left(size - 4));
   226 			emit SendChat(msgbody);
   226 			emit SendChat(msgbody);
   227 			// FIXME: /me command doesn't work here
   227 			// FIXME: /me command doesn't work here
   228 			//QByteArray buf;
   228 			QByteArray buf;
   229 			//HWProto::addStringToBuffer(buf, QString("s\x01%1: %2\x20\x20").arg(config->netNick()).arg(msgbody));
   229 			HWProto::addStringToBuffer(buf, "s" + HWProto::formatChatMsg(config->netNick(), msgbody) + "\x20\x20");
   230 			//demo.append(buf);
   230 			demo.append(buf);
   231 			break;
   231 			break;
   232 		}
   232 		}
   233 		case 'b': {
   233 		case 'b': {
   234 			int size = msg.size();
   234 			int size = msg.size();
   235 			QString msgbody = QString::fromUtf8(msg.mid(2).left(size - 4));
   235 			QString msgbody = QString::fromUtf8(msg.mid(2).left(size - 4));