@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.

Syntax

@redirchat:<channel>=<n|add>
@redirchat:<channel>=<y|rem>

Parameters

channel
Required. A positive integer other than DEBUG_CHANNEL. Each distinct channel is a separate entry.

Caveats

Examples

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");
    }
}

Implementation notes

See also

Comparison with RLV

This command works differently from RLV's @redirchat; see the comparison.