While @sendim=n is in force, the text of IMs the user sends is replaced by *** IM blocked by sender's viewer before it leaves the viewer. Exceptions re-allow specific avatars or groups, and RLVa adds a distance form that allows IMs to avatars within a range.
@sendim=<n|y>
@sendim_sec=<n|y>
@sendim:<uuid>=<add|rem|n|y>
@sendim:<dist_min>[;<dist_max>]=<n|y>
;. This form is reference-counted, so it both sets the restriction and the window. Values are stored squared in the modifiers SendIM Distance (Min) / SendIM Distance (Max).An IM to recipient may be sent if:
( !@sendim || isException(@sendim, recipient) || inDistanceWindow(recipient) )
&& ( !@sendimto || !isException(@sendimto, recipient) )
(Hidden) if any recipient fails canSendIM or canStartIM; the payment message field is disabled for a blocked recipient; the Do Not Disturb auto-response text is hidden from the settings editor and its preference control disabled while @sendim is held._sec)Adding the restriction as @sendim_sec=n marks it strict. While a strict marker exists (or @permissive is in force), an exception only counts if every object holding the restriction strictly (every holder, under @permissive=n) has added it too, so exceptions granted by other objects are ignored.
=n also works (n = add), and it is not reference-counted.=y.llOwnerSay("@sendim=n,sendim:" + (string)llGetOwnerKey(llGetKey()) + "=add");
// Allow IMs only to avatars within 20 m
llOwnerSay("@sendim:0;20=n");
RlvBehaviourToggleProcessor<RLV_BHVR_SENDIM, RlvBehaviourRecvSendStartIMHandler>("sendim", BHVR_STRICT) and two modifiers (default F32_MAX, comparators Max/Min), rlvhelper.cpp:139-141.@recvim/@startim: rlvhandler.cpp:2224-2275; toggle (DND response): rlvhandler.cpp:2277-2282.RlvActions::canSendIM, rlvactions.cpp:195-204; distance helper rlvactions.cpp:151-170.fsfloaterim.cpp:572-615, llfloaterimsession.cpp:287-325, llviewermessage.cpp:8068-8076 (lures), llavataractions.cpp:670-680 (teleport request), llfloaterpay.cpp:444, llfloaterpreference.cpp:2274.blocked_sendim in skins/default/xui/en/rlva_strings.xml.This command works differently from RLV's @sendim; see the comparison.