summaryrefslogtreecommitdiff
path: root/indra/newview/rlvcommon.cpp
diff options
context:
space:
mode:
authorKitty Barnett <develop@catznip.com>2024-09-02 01:57:34 +0200
committerKitty Barnett <develop@catznip.com>2024-09-02 01:57:34 +0200
commit4f7eb9b12e9c7eeb9f3ee0980bd4616df7d678b6 (patch)
tree30142af9460e1e75a6259917e338b25924619d4e /indra/newview/rlvcommon.cpp
parent7402fe6412e98e4b295ee3e04874f379c752f7a0 (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))