--- a/QTfrontend/net/proto.cpp Sat Aug 25 18:21:37 2018 +0200
+++ b/QTfrontend/net/proto.cpp Sat Aug 25 19:07:17 2018 +0200
@@ -47,8 +47,11 @@
QString HWProto::formatChatMsg(const QString & nick, const QString & msg)
{
- if(msg.left(4) == "/me ")
+ // Messages using the /me command.
+ // Server messages (nick starts with a bracket) are never considered /me messages.
+ if(msg.left(4) == "/me " && (!nick.startsWith('[')) && (!nick.startsWith('(')))
return QString("\x02* %1 %2").arg(nick).arg(msg.mid(4));
+ // Normal chat message
else
return QString("\x01%1: %2").arg(nick).arg(msg);
}