Difference between revisions of "User:Toy Wylie/RLV Documentation/sendim sec"
Jump to navigation
Jump to search
Liace Parx (talk | contribs) (Created page with '{{Template:RLV_Documentation/Command |command=@sendim_sec|type=Restriction |usage=#@sendim_sec=<y/n> #@sendim:<UUID>=<rem/add> |purpose=When prevented, everything typed in IM wil...') |
Liace Parx (talk | contribs) |
||
Line 4: | Line 4: | ||
#@sendim:<UUID>=<rem/add> | #@sendim:<UUID>=<rem/add> | ||
|purpose=When prevented, everything typed in IM will be discarded and a bogus message will be sent to the receiver instead. This particular command accepts exceptions issued from the same object only, opposed to the non-secure way that accepts exceptions from any object. Example 1 is where all IM's are blocked, Example 2 is with an expection for one UUID you will be able to IM anyways. '''Notice''' sendim:<UUID>=<rem/add> is '''not''' sendim_sec:<UUID>=<rem/add> | |purpose=When prevented, everything typed in IM will be discarded and a bogus message will be sent to the receiver instead. This particular command accepts exceptions issued from the same object only, opposed to the non-secure way that accepts exceptions from any object. Example 1 is where all IM's are blocked, Example 2 is with an expection for one UUID you will be able to IM anyways. '''Notice''' sendim:<UUID>=<rem/add> is '''not''' sendim_sec:<UUID>=<rem/add> | ||
|version=1. | |version=1.21 | ||
|seealso=recvim recvim_sec sendim sendim_sec | |seealso=recvim recvim_sec sendim sendim_sec | ||
|example=<lsl>integer restricted = FALSE; | |example=<lsl>integer restricted = FALSE; |
Revision as of 09:13, 7 July 2010
@sendim sec
Type
Restriction
Implemented
Implemented since RLV version 1.21
Usage
#@sendim_sec=<y/n>
- @sendim:<UUID>=<rem/add>
Purpose
When prevented, everything typed in IM will be discarded and a bogus message will be sent to the receiver instead. This particular command accepts exceptions issued from the same object only, opposed to the non-secure way that accepts exceptions from any object. Example 1 is where all IM's are blocked, Example 2 is with an expection for one UUID you will be able to IM anyways. Notice sendim:<UUID>=<rem/add> is not sendim_sec:<UUID>=<rem/add>
See Also
Example
<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, "IM's are now restricted, won't be able to IM out."); } else { llOwnerSay("@sendim_sec=y"); llSay(0, "IM restriction lifted."); } }
}
// // Example 2 // Edit here pls, so there are two boxes //
integer restricted = FALSE;
default {
touch_start(integer total_number) { if (llDetectedKey(0) != llGetOwner()) return; restricted = 1-restricted; if(restricted) { llOwnerSay("@sendim_sec=n,recvemote:fcf9eafc-a6b4-4de9-bda7-c44ddb649895=add"); llSay(0, "IM's are now restricted, but with an exception."); } else { llOwnerSay("@sendim_sec=y,recvemote:fcf9eafc-a6b4-4de9-bda7-c44ddb649895=rem"); llSay(0, "IM restriction lifted."); } }
}
</lsl>