diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-05-24 11:12:11 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-05-24 11:12:11 -0400 |
commit | 9d9ecb2462e559057a2fc226bd6e7c90f5eb6c61 (patch) | |
tree | 2e31025a7b9299e473e80599d96ab5ec1c5f6739 /indra/llui | |
parent | e2f179b9edebca1557ce3f774781bb9b9350b781 (diff) | |
parent | 30da8853c88e755ac5c0836f3952d16d501d3502 (diff) |
Merge branch 'release/luau-scripting' into lua-timers
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/llchat.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/indra/llui/llchat.h b/indra/llui/llchat.h index 56105add7e..70d7e82970 100644 --- a/indra/llui/llchat.h +++ b/indra/llui/llchat.h @@ -89,7 +89,8 @@ public: mPosAgent(), mURL(), mChatStyle(CHAT_STYLE_NORMAL), - mSessionID() + mSessionID(), + mIsScript(false) { } std::string mText; // UTF-8 line of text @@ -107,6 +108,22 @@ public: std::string mURL; EChatStyle mChatStyle; LLUUID mSessionID; + + bool mIsScript; }; +static const std::string LUA_PREFIX("[LUA]"); + +inline +std::string without_LUA_PREFIX(const std::string& string, bool is_lua) +{ + if (is_lua) + { + return string.substr(LUA_PREFIX.size()); + } + else + { + return string; + } +} #endif |