summaryrefslogtreecommitdiff
path: root/indra/llui/llchat.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-05-24 09:22:40 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-05-24 09:22:40 -0400
commitb0ef843fe0702482e843379b4975b2dda4d58935 (patch)
tree0db08787dfcf84c8a12f4b8a5f189de6e180a8e4 /indra/llui/llchat.h
parent591a80765c4438f72795230824d2e549bafc592d (diff)
Nat's ideas from PR #1547
Diffstat (limited to 'indra/llui/llchat.h')
-rw-r--r--indra/llui/llchat.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llui/llchat.h b/indra/llui/llchat.h
index 8fd92c2550..70d7e82970 100644
--- a/indra/llui/llchat.h
+++ b/indra/llui/llchat.h
@@ -113,4 +113,17 @@ public:
};
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