diff options
Diffstat (limited to 'indra/llui/llchat.h')
-rw-r--r-- | indra/llui/llchat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llui/llchat.h b/indra/llui/llchat.h index 8fd92c2550..343b81ba8d 100644 --- a/indra/llui/llchat.h +++ b/indra/llui/llchat.h @@ -113,4 +113,16 @@ public: }; static const std::string LUA_PREFIX("[LUA]"); +inline std::string remove_LUA_PREFIX(const std::string &string, bool is_lua) +{ + if (is_lua) + { + return string.substr(LUA_PREFIX.size()); + } + else + { + return string; + } +} + #endif |