Browse Source

Don't quote with action messages

Quoting with action messages produces badly looking messages,
where nick is blue coloured, while rest of text that is preceded
by '> ' is green. To avoid that, quoting should not be triggered
in action messages.
pull/1712/head
Zetok Zalbavar 10 years ago
parent
commit
1244d689f6
No known key found for this signature in database
GPG Key ID: C953D3880212068A
  1. 6
      src/chatlog/chatmessage.cpp

6
src/chatlog/chatmessage.cpp

@ -46,8 +46,6 @@ ChatMessage::Ptr ChatMessage::createChatMessage(const QString &sender, const QSt
if (Settings::getInstance().getUseEmoticons()) if (Settings::getInstance().getUseEmoticons())
text = SmileyPack::getInstance().smileyfied(text); text = SmileyPack::getInstance().smileyfied(text);
//quotes (green text)
text = detectQuotes(detectAnchors(text));
switch(type) switch(type)
{ {
@ -57,9 +55,13 @@ ChatMessage::Ptr ChatMessage::createChatMessage(const QString &sender, const QSt
msg->setAsAction(); msg->setAsAction();
break; break;
case ALERT: case ALERT:
// quotes should not be available for action messages ↑
text = detectQuotes(detectAnchors(text)); //quotes (green text)
text = wrapDiv(text, "alert"); text = wrapDiv(text, "alert");
break; break;
default: default:
// quotes should not be avaialble for action messages
text = detectQuotes(detectAnchors(text)); //quotes (green text)
text = wrapDiv(text, "msg"); text = wrapDiv(text, "msg");
} }

Loading…
Cancel
Save