summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-05-30 15:39:01 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-05-30 15:39:38 +0300
commitf2f3ed08db9709fbb0f4c48c0d9e39c450207383 (patch)
treeed19aa9aa0b2424d4fcb027c065871c1922ff45a /indra/llui
parent83d91c82f42f6c024e7e4dc6d6a64b067ad6117a (diff)
parent316bc0bdf30514a0c6894ef7c2859e79bf02a546 (diff)
Merge branch release/luau-scripting
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llchat.h19
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