From 4f7eb9b12e9c7eeb9f3ee0980bd4616df7d678b6 Mon Sep 17 00:00:00 2001 From: Kitty Barnett Date: Mon, 2 Sep 2024 01:57:34 +0200 Subject: Add the @getcommand command query reply command --- indra/newview/rlvcommon.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'indra/newview/rlvcommon.cpp') 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 + using namespace Rlv; // ============================================================================ @@ -46,6 +48,13 @@ std::string Strings::getVersionImplNum() // RlvUtil // +bool Util::parseStringList(const std::string& strInput, std::vector& 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)) -- cgit v1.2.3