@recvim=n stops the avatar from reading incoming IMs. The text of a blocked IM is replaced, and for one-to-one IMs the sender automatically receives a reply saying the message could not be read. Exceptions can be granted to individual avatars or, since 2.9.29, to group chats by name. @recvim_sec is the secure variant, which only honors exceptions from the same object.
@recvim=<y|n>
@recvim_sec=<y|n>
@recvim:<uuid>=<add|rem> exception for an avatar
@recvim:<group_name>=<add|rem> exception for a group chat
@recvim:allgroups=<add|rem> exception for all group chats
, from the name, because commas separate RLV commands.allgroupsBehavior in Marine's viewer:
... (with the "Saved" prefix for offline IMs). The viewer sends the sender an automatic do-not-disturb style reply whose text is the debug setting RestrainedLoveRecvimMessage (default: "The Resident you messaged is prevented from reading your instant messages at the moment, please try again later."), under the name "Your Name using viewer RLV version string". The normal do-not-disturb auto-response is not sent for such senders.... when the sender is restricted and neither the group name nor allgroups is an exception (or when @recvimfrom names the group or allgroups). No auto-reply is sent, so group members aren't spammed. The first message of a newly opened conference/ad-hoc session from a restricted sender is dropped.(Hidden), and the message attached to a L$ payment is blanked.llInstantMessage) are not filtered in Marine's viewer. The @recvim check for IM_FROM_TASK sits between a break; and the case IM_FROM_TASK: label, so it can never run.stringReplace starts again from the original session name, so commas are not actually removed before comparison (only ; is). Groups whose names contain a comma can't be matched as exceptions.// Block IMs except from the owner and the owner's group chat
llOwnerSay("@recvim=n,recvim:" + (string)ownerKey + "=add,recvim:my club=add");
Spec discrepancy: the spec says every incoming IM is "discarded". In the code the text is replaced by ... and the IM still shows up in the session. Object IMs aren't affected at all (see Caveats).
stringReplace on session->mName); dead IM_FROM_TASK check (1268-1275); lure messages (1678-1683); friendship offers (1924-1930).recvim_sec is handled generically by containsWithoutException (RRInterface.cpp:1053-1091). The default messages are in RRInterface.cpp:121-122 and are overridden from settings in llstartup.cpp:512-513.canReceiveIM (mkrlinterface.cpp:7253-7258). A blocked one-to-one IM reads *** IM blocked by your viewer instead of .... The auto-reply works the same way and uses the per-account setting RestrainedLoveRecvimMessage..... For group sessions, CoolVL tests canSendGroupIM (the @sendim rules) on incoming group messages (llimmgr.cpp:2516-2521). Its canReceiveGroupIM exists but is unused, so in CoolVL group exceptions to @recvim probably have no effect, and @sendim affects reading group chat., and ; correctly, but combine the conditions differently from Marine (see @sendim).This command works differently from RLVa's @recvim; see the comparison.