equal
deleted
inserted
replaced
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)); |