diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 8a93e6c377..b301565b6e 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -156,17 +156,6 @@ Value 1 - RLVaExtendedCommands - - Comment - Enables the extended command set - Persist - 1 - Type - Boolean - Value - 1 - RLVaHideLockedLayers Comment diff --git a/indra/newview/rlvdefines.h b/indra/newview/rlvdefines.h index c994206a43..229173600a 100644 --- a/indra/newview/rlvdefines.h +++ b/indra/newview/rlvdefines.h @@ -66,6 +66,7 @@ const S32 RLVa_VERSION_BUILD = 0; #define RLV_ROOT_FOLDER "#RLV" #define RLV_CMD_PREFIX '@' +#define RLV_OPTION_SEPARATOR ";" // Default separator used in command options #define RLV_PUTINV_PREFIX "#RLV/~" #define RLV_PUTINV_SEPARATOR "/" #define RLV_PUTINV_MAXDEPTH 4 diff --git a/indra/newview/rlvfloaters.cpp b/indra/newview/rlvfloaters.cpp index 8c4ae4c5e7..b1dac2cf37 100644 --- a/indra/newview/rlvfloaters.cpp +++ b/indra/newview/rlvfloaters.cpp @@ -705,7 +705,8 @@ BOOL RlvFloaterConsole::postBuild() void RlvFloaterConsole::addCommandReply(const std::string& strCommand, const std::string& strReply) { - m_pOutputText->appendText(llformat("%s: %s", strCommand.c_str(), strReply.c_str()), true); + m_pOutputText->appendText(llformat("%s: ", strCommand.c_str()), true); + m_pOutputText->appendText(strReply, false); } void RlvFloaterConsole::onInput(LLUICtrl* pCtrl, const LLSD& sdParam) diff --git a/indra/newview/rlvhandler.cpp b/indra/newview/rlvhandler.cpp index 0085efbf2a..1b23b58bb7 100644 --- a/indra/newview/rlvhandler.cpp +++ b/indra/newview/rlvhandler.cpp @@ -53,6 +53,7 @@ struct RlvCommandOptionHelper { template static bool parseOption(const std::string& strOption, optionType& valueOption); + static bool parseStringList(const std::string& strOption, std::vector& optionList); }; template<> @@ -68,6 +69,13 @@ bool RlvCommandOptionHelper::parseOption(const std::string& strOption, int& return LLStringUtil::convertToS32(strOption, nOption); } +bool RlvCommandOptionHelper::parseStringList(const std::string& strOption, std::vector& optionList) +{ + if (!strOption.empty()) + boost::split(optionList, strOption, boost::is_any_of(std::string(RLV_OPTION_SEPARATOR))); + return !optionList.empty(); +} + // ============================================================================ // Command specific helper functions // @@ -1934,14 +1942,6 @@ ERlvCmdRet RlvHandler::processReplyCommand(const RlvCommand& rlvCmd) const strReply = idSitObj.asString(); } break; - case RLV_BHVR_GETCOMMAND: // @getcommand: