From 7845ea584611b5bd81ad9dea226933b1444865f3 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Wed, 19 Aug 2026 10:32:55 +0800 Subject: Basic @redirchat implementation We use a non member static associative array here cause it needs to be accessed in sendChatFromViewer that is static. A public function for modifying it is also just static. As per spec, "It does not apply to emotes, and will not trigger any animation", hence some extra efforts there. --- indra/newview/rlvhandler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'indra/newview/rlvhandler.cpp') diff --git a/indra/newview/rlvhandler.cpp b/indra/newview/rlvhandler.cpp index c11f6af5b2..53df717af7 100644 --- a/indra/newview/rlvhandler.cpp +++ b/indra/newview/rlvhandler.cpp @@ -29,6 +29,7 @@ #include "llagent.h" #include "llstartup.h" #include "llappearancemgr.h" +#include "llfloaterimnearbychat.h" #include "llinventoryfunctions.h" #include "llinventorymodel.h" #include "llmoveview.h" @@ -414,6 +415,13 @@ ECmdRet CommandHandlerBaseImpl::processCommand(const RlvComm return (*pHandler)(rlvCmd, toggle); } +template<> template<> +ECmdRet BehaviourToggleHandler::onCommand(const RlvCommand& rlvCmd, bool& toggle) +{ + LLFloaterIMNearbyChat::addOrRemoveRedirChatChannel(std::stoi(rlvCmd.getOption()), toggle); + return ECmdRet::Succeeded; +} + template<> template<> ECmdRet BehaviourToggleHandler::onCommand(const RlvCommand& rlvCmd, bool& toggle) { -- cgit v1.3