Difference between revisions of "User:Toy Wylie/RLV Documentation/recvim"
Jump to navigation
Jump to search
m (type fix, examples split) |
(typo, source code fixes) |
||
Line 4: | Line 4: | ||
|usage=# @recvim=<y/n> | |usage=# @recvim=<y/n> | ||
# @recvim:<UUID>=<add/rem> | # @recvim:<UUID>=<add/rem> | ||
|purpose=# When prevented, every incoming IM will be discarded and the sender will be notified that the user cannot read them. Example 1 is where all | |purpose=# When prevented, every incoming IM will be discarded and the sender will be notified that the user cannot read them. Example 1 is where all IMs are blocked. | ||
# Example 2 is with an exception for one UUID that will be able to IM anyways. | # Example 2 is with an exception for one UUID that will be able to IM anyways. | ||
|version=1.0b | |version=1.0b | ||
Line 44: | Line 44: | ||
if(restricted) | if(restricted) | ||
{ | { | ||
llOwnerSay("@recvim=n, | llOwnerSay("@recvim=n,recvim:fcf9eafc-a6b4-4de9-bda7-c44ddb649895=add"); | ||
llSay(0, " | llSay(0, "IMs are now restricted, but with an exception."); | ||
} | } | ||
else | else | ||
{ | { | ||
llOwnerSay("@recvim=y, | llOwnerSay("@recvim=y,recvim:fcf9eafc-a6b4-4de9-bda7-c44ddb649895=rem"); | ||
llSay(0, "IM restriction lifted."); | llSay(0, "IM restriction lifted."); | ||
} | } |
Latest revision as of 12:55, 7 July 2010
@recvim
Type
# Restriction
- Exception
Implemented
Implemented since RLV version 1.0b
Usage
# @recvim=<y/n>
- @recvim:<UUID>=<add/rem>
Purpose
# When prevented, every incoming IM will be discarded and the sender will be notified that the user cannot read them. Example 1 is where all IMs are blocked.
- Example 2 is with an exception for one UUID that will be able to IM anyways.
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("@recvim=n"); llSay(0, "IM's are now restricted."); } else { llOwnerSay("@recvim=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("@recvim=n,recvim:fcf9eafc-a6b4-4de9-bda7-c44ddb649895=add"); llSay(0, "IMs are now restricted, but with an exception."); } else { llOwnerSay("@recvim=y,recvim:fcf9eafc-a6b4-4de9-bda7-c44ddb649895=rem"); llSay(0, "IM restriction lifted."); } }
}
</lsl>