Resolve and link registered SLURLS that are in chat.

Adds handle_registered_urls function
Use this as a drop in replacement for appendStyledText where applicable
This commit is contained in:
Lirusaito
2019-01-11 09:10:56 -05:00
parent 778b89d5c9
commit 8c7fceb081
2 changed files with 30 additions and 4 deletions

View File

@@ -812,10 +812,11 @@ void LLFloaterIMPanel::addHistoryLine(const std::string &utf8msg, LLColor4 incol
// Append the chat message in style
{
LLStyleSP style(new LLStyle);
style->setColor(incolor);
style->mItalic = is_irc;
style->mBold = from_user && gSavedSettings.getBOOL("SingularityBoldGroupModerator") && isModerator(source);
mHistoryEditor->appendStyledText(utf8msg, false, prepend_newline, style);
void handle_registered_urls(std::string ui_msg, bool prepend_newline, LLStyleSP style, LLViewerTextEditor* edit, const LLColor4& color);
handle_registered_urls(utf8msg, prepend_newline, style, mHistoryEditor, incolor);
}
if (log_to_file