|
@@ -110,10 +110,17 @@ void Client::parsePrintedLine()
|
|
{
|
|
{
|
|
playerName = player.name.toAscii();
|
|
playerName = player.name.toAscii();
|
|
QWClient::stripColor(playerName.data());
|
|
QWClient::stripColor(playerName.data());
|
|
- if(printLine.startsWith(playerName))
|
|
|
|
|
|
+ if(printLine.startsWith(playerName) || (player.spectator && printLine.startsWith(QString("[SPEC] " + player.name).toAscii())))
|
|
{
|
|
{
|
|
- if(lastMatchSize < playerName.size())
|
|
|
|
|
|
+ if(player.spectator && printLine.startsWith("[SPEC] "))
|
|
|
|
+ {
|
|
|
|
+ if(lastMatchSize < (playerName.size() + 7))
|
|
|
|
+ lastMatchSize = (playerName.size() + 7);
|
|
|
|
+ }
|
|
|
|
+ else if(lastMatchSize < playerName.size())
|
|
|
|
+ {
|
|
lastMatchSize = playerName.size();
|
|
lastMatchSize = playerName.size();
|
|
|
|
+ }
|
|
parsed = true;
|
|
parsed = true;
|
|
}
|
|
}
|
|
}
|
|
}
|