equal
deleted
inserted
replaced
381 return; |
381 return; |
382 } |
382 } |
383 |
383 |
384 QString action; |
384 QString action; |
385 QString message; |
385 QString message; |
386 // Fake nicks are nicks used for messages from the server with nicks like |
386 // '[' is a special character used in fake nick names of server messages. |
387 // [server], [random], etc. |
387 // Those are supposed to be translated |
388 // The '[' character is not allowed in real nicks. |
388 if(!lst[1].startsWith('[')) |
389 bool isFakeNick = lst[1].startsWith('['); |
|
390 if(!isFakeNick) |
|
391 { |
389 { |
392 // Normal message |
390 // Normal message |
393 message = lst[2]; |
391 message = lst[2]; |
394 // Check for action (/me command) |
392 // Another kind of fake nick. '(' nicks are server messages, but they must not be translated |
395 action = HWProto::chatStringToAction(message); |
393 if(!lst[1].startsWith('(')) |
|
394 { |
|
395 // Check for action (/me command) |
|
396 action = HWProto::chatStringToAction(message); |
|
397 } |
396 } |
398 } |
397 else |
399 else |
398 { |
400 { |
399 // Server message |
401 // Server message |
400 // Server messages are translated client-side |
402 // Server messages are translated client-side |