summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastimpanel.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-08-13 14:50:04 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-08-13 14:50:04 +0300
commit9f2e322c7eea6830d372943d74f986d299cd314a (patch)
treeb9a9f7057fa1d1438db2b88761fcfd6a248516a5 /indra/newview/lltoastimpanel.cpp
parente363ae54b08842c628970e6d32eb5e6fea635469 (diff)
clean up and add comment
Diffstat (limited to 'indra/newview/lltoastimpanel.cpp')
-rw-r--r--indra/newview/lltoastimpanel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/lltoastimpanel.cpp b/indra/newview/lltoastimpanel.cpp
index 7fadd8773b..b7353d6960 100644
--- a/indra/newview/lltoastimpanel.cpp
+++ b/indra/newview/lltoastimpanel.cpp
@@ -87,6 +87,7 @@ LLToastIMPanel::LLToastIMPanel(LLToastIMPanel::Params &p) : LLToastPanel(p.notif
{
LLAvatarName avatar_name;
LLAvatarNameCache::get(p.avatar_id, &avatar_name);
+ // move Lua prefix from the message field to the [From] field
auto [message, is_lua] = LLStringUtil::withoutPrefix(p.message, LUA_PREFIX);
std::string prefix = is_lua ? "LUA - " : "";
p.message = "[From " + prefix + avatar_name.getDisplayName() + "]\n" + message;