@recvchat=n stops the avatar from reading what others say in local chat. Incoming chat is rewritten to ..., except for short, quote-free emotes, which come through truncated. Exceptions can be granted per speaker. @recvchat_sec is the secure variant, which only honors exceptions from the same object.
@recvchat=<y|n>
@recvchat_sec=<y|n>
@recvchat:<uuid>=<add|rem> exception: chat from this speaker is not filtered
Each incoming local-chat message is filtered when all of these hold:
llRegionSayTo message (CHAT_TYPE_DIRECT);llOwnerSay (Marine) / not any llOwnerSay (CoolVL);The filter (crunchEmote with a 20-character limit) produces:
/me … or /me'…; Marine also accepts MU-style :pose): replaced by ... if they contain any of " '' ( ) " -" "- " * = ^ _ ~. Otherwise they are cut after the first . and to at most 20 characters, unless any object holds @emote./ (gesture triggers) longer than 7 characters: ......., unless out-of-character bypass is enabled and the text is wrapped in (( … )).If the debug setting RestrainedLoveShowEllipsis is off, a message reduced to ... is hidden instead.
sCanOoc = FALSE in llstartup.cpp:510), so ((…)) text is also replaced by ....// Deafen the wearer except for their owner's voice
llOwnerSay("@recvchat=n,recvchat:" + (string)ownerKey + "=add");
// Secure version: exceptions from other objects are ignored
llOwnerSay("@recvchat_sec=n");
Spec discrepancy: the spec says everything is discarded "except emotes". In the code, emotes go through the same crunchEmote filter that @sendchat uses, so they are cut to the first sentence and 20 characters, and emotes containing quote-like characters become ....
process_chat_from_simulator). The test is containsWithoutException("recvchat", from_id) || contains("recvchatfrom:"+from_id) || contains("recvchatfrom:"+owner_id).containsWithoutException (RRInterface.cpp:1053-1091) automatically considers recvchat_sec; there is no separate code path for the _sec name.crunchEmote (RRInterface.cpp:2453-2503). In Marine's version, text before a /me is split off and then dropped from the returned value (return crunched;, with prefix + crunched commented out).llOwnerSay messages (CHAT_TYPE_OWNER). Marine filters llOwnerSay text unless it starts with @.RestrainedLoveShowEllipsis off, CoolVL drops the message entirely. Marine replaces its text with an empty string.RestrainedLoveCanOoc and adds RestrainedLoveUntruncatedEmotes to disable emote truncation. Marine has the OOC bypass permanently off and no untruncated-emote option.crunchEmote doesn't recognize MU-style :pose emotes or split text before a mid-message /me.This command works differently from RLVa's @recvchat; see the comparison.