summaryrefslogtreecommitdiff
path: root/indra/newview/rlvcommon.cpp
diff options
context:
space:
mode:
authorKitty Barnett <develop@catznip.com>2024-09-02 01:57:34 +0200
committerErik Kundiman <erik@megapahit.org>2025-05-11 16:28:04 +0800
commitde4d49e8c70d040dd2735d16997dbc4b48438c30 (patch)
treebfb023d3becb090b195c9daea8c40764a3ae254c /indra/newview/rlvcommon.cpp
parent838a398036ec96f2fd2149c0560182913e00860b (diff)
Add the @getcommand command query reply command
Diffstat (limited to 'indra/newview/rlvcommon.cpp')
-rw-r--r--indra/newview/rlvcommon.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/rlvcommon.cpp b/indra/newview/rlvcommon.cpp
index 898df3af42..eda2cdedc8 100644
--- a/indra/newview/rlvcommon.cpp
+++ b/indra/newview/rlvcommon.cpp
@@ -9,6 +9,8 @@
#include "rlvdefines.h"
#include "rlvcommon.h"
+#include <boost/algorithm/string.hpp>
+
using namespace Rlv;
// ============================================================================
@@ -46,6 +48,13 @@ std::string Strings::getVersionImplNum()
// RlvUtil
//
+bool Util::parseStringList(const std::string& strInput, std::vector<std::string>& optionList, std::string_view strSeparator)
+{
+ if (!strInput.empty())
+ boost::split(optionList, strInput, boost::is_any_of(strSeparator));
+ return !optionList.empty();
+}
+
bool Util::sendChatReply(S32 nChannel, const std::string& strUTF8Text)
{
if (!isValidReplyChannel(nChannel))