Difference between revisions of "User:Toy Wylie/RLV Documentation/sendim sec"
Jump to navigation
Jump to search
Liace Parx (talk | contribs) |
(usage fixes, source code fixes) |
||
Line 1: | Line 1: | ||
{{Template:RLV_Documentation/Command | {{Template:RLV_Documentation/Command | ||
|command=@sendim_sec|type=Restriction | |command=@sendim_sec|type=Restriction | ||
|usage= | |usage=@sendim_sec=<y/n> | ||
|purpose=When prevented, everything typed in IM will be discarded and a bogus message will be sent to the receiver instead. This particular command allows exceptions issued from the same object only, opposed to the non-secure way that allows exceptions from any object. Example 1 is where all IMs are blocked, Example 2 is with an exception for one UUID you will be able to IM anyways. | |||
|purpose=When prevented, everything typed in IM will be discarded and a bogus message will be sent to the receiver instead. This particular command | |||
'''Note:''' sendim:<UUID>=<add/rem> is '''not''' sendim_sec:<UUID>=<add/rem> | |||
|version=1.21 | |version=1.21 | ||
|seealso=recvim recvim_sec sendim | |seealso=recvim recvim_sec sendim | ||
|example=<lsl>integer restricted = FALSE; | |example=<lsl>integer restricted = FALSE; | ||
Line 19: | Line 20: | ||
{ | { | ||
llOwnerSay("@sendim_sec=n"); | llOwnerSay("@sendim_sec=n"); | ||
llSay(0, " | llSay(0, "IMs are now restricted, won't be able to IM out."); | ||
} | } | ||
else | else | ||
Line 28: | Line 29: | ||
} | } | ||
} | } | ||
</lsl> | |||
|example_2=<lsl>integer restricted = FALSE; | |||
/ | |||
integer restricted = FALSE; | |||
default | default | ||
Line 46: | Line 42: | ||
if(restricted) | if(restricted) | ||
{ | { | ||
llOwnerSay("@sendim_sec=n, | llOwnerSay("@sendim_sec=n,sendim:fcf9eafc-a6b4-4de9-bda7-c44ddb649895=add"); | ||
llSay(0, " | llSay(0, "IMs are now restricted, but with an exception."); | ||
} | } | ||
else | else | ||
{ | { | ||
llOwnerSay("@sendim_sec=y, | llOwnerSay("@sendim_sec=y,sendim:fcf9eafc-a6b4-4de9-bda7-c44ddb649895=rem"); | ||
llSay(0, "IM restriction lifted."); | llSay(0, "IM restriction lifted."); | ||
} | } |
Latest revision as of 12:54, 7 July 2010
@sendim sec
Type
Restriction
Implemented
Implemented since RLV version 1.21
Usage
@sendim_sec=<y/n>
Purpose
When prevented, everything typed in IM will be discarded and a bogus message will be sent to the receiver instead. This particular command allows exceptions issued from the same object only, opposed to the non-secure way that allows exceptions from any object. Example 1 is where all IMs are blocked, Example 2 is with an exception for one UUID you will be able to IM anyways.
Note: sendim:<UUID>=<add/rem> is not sendim_sec:<UUID>=<add/rem>
See Also
Example 1
<lsl>integer restricted = FALSE;
default {
touch_start(integer total_number) { if (llDetectedKey(0) != llGetOwner()) return; restricted = 1-restricted; if(restricted) { llOwnerSay("@sendim_sec=n"); llSay(0, "IMs are now restricted, won't be able to IM out."); } else { llOwnerSay("@sendim_sec=y"); llSay(0, "IM restriction lifted."); } }
}
</lsl>Example 2
<lsl>integer restricted = FALSE;
default {
touch_start(integer total_number) { if (llDetectedKey(0) != llGetOwner()) return; restricted = 1-restricted; if(restricted) { llOwnerSay("@sendim_sec=n,sendim:fcf9eafc-a6b4-4de9-bda7-c44ddb649895=add"); llSay(0, "IMs are now restricted, but with an exception."); } else { llOwnerSay("@sendim_sec=y,sendim:fcf9eafc-a6b4-4de9-bda7-c44ddb649895=rem"); llSay(0, "IM restriction lifted."); } }
}
</lsl>