@redirchat:<channel>=n intercepts what the user types into nearby chat (channel 0) and sends it to channel instead, where a script can listen, rewrite it (for a gag, say) and relay it. Several redirect channels can be active at once; the text goes to all of them.
@redirchat:<channel>=<n|add>
@redirchat:<channel>=<y|rem>
DEBUG_CHANNEL. Each distinct channel is a separate entry.((OOC)) (if allowed by settings) and lines starting with / of up to 7 characters, is said normally. Emotes are not redirected by @redirchat; see @rediremote.RLVaSplitRedirectChat debug setting (default off) is on, in which case they are split on spaces into several messages.RLVaShowRedirectChatTyping setting (default off) is enabled.DEBUG_CHANNEL is refused while @redirchat is held (for non-emotes), because viewers show it like public chat._sec form. The channel entry is stored in RLVa's exception table, but it is reference-counted as a restriction.integer CH = 31337;
default
{
state_entry()
{
llListen(CH, "", llGetOwner(), "");
llOwnerSay("@redirchat:" + (string)CH + "=add");
}
listen(integer c, string n, key id, string msg)
{
llSay(0, llGetDisplayName(llGetOwner()) + " mumbles: mmmph mmph");
}
}
rlvhelper.cpp 131 as a plain RLV_TYPE_ADDREM entry; legacy handling in rlvhandler.cpp 1683-1694 (VERIFY_OPTION_REF, addException(obj, bhvr, channel)).RlvHandler::redirectChatOrEmote, rlvhandler.cpp 1306-1334, called from send_chat_from_viewer (llfloaterimnearbychat.cpp 977-1022; Firestorm's fsnearbychathub.cpp 180-215). Sending via RlvUtil::sendChatReply/sendChatReplySplit, rlvcommon.cpp 726-758.RlvActions::canSendTypingStart, rlvactions.cpp 207-213. Channel checks: canSendChannel, 188-193.This command works differently from RLV's @redirchat; see the comparison.