Difference between revisions of "User:Toy Wylie/RLV Documentation/sendchannel sec"
Jump to navigation
Jump to search
(fixed source, clarification) |
m (fixed version) |
||
Line 3: | Line 3: | ||
|usage=@sendchannel_sec=<y/n> | |usage=@sendchannel_sec=<y/n> | ||
|purpose=Complimentary of @sendchat, this command prevents the user from sending messages on non-public channels. It does not prevent the viewer automatic replies like @version=nnnn, @getstatus=nnnn etc. This particular command only allows exceptions issued from the same object, opposed to its non-secure version which allows exceptions from any other object. | |purpose=Complimentary of @sendchat, this command prevents the user from sending messages on non-public channels. It does not prevent the viewer automatic replies like @version=nnnn, @getstatus=nnnn etc. This particular command only allows exceptions issued from the same object, opposed to its non-secure version which allows exceptions from any other object. | ||
|version= | |version=1.21 | ||
|seealso=sendchannel | |seealso=sendchannel | ||
|example=<lsl>integer listenHandle; | |example=<lsl>integer listenHandle; |
Latest revision as of 04:08, 9 July 2010
@sendchannel sec
Type
Restriction
Implemented
Implemented since RLV version 1.21
Usage
@sendchannel_sec=<y/n>
Purpose
Complimentary of @sendchat, this command prevents the user from sending messages on non-public channels. It does not prevent the viewer automatic replies like @version=nnnn, @getstatus=nnnn etc. This particular command only allows exceptions issued from the same object, opposed to its non-secure version which allows exceptions from any other object.
See Also
Example
<lsl>integer listenHandle;
integer redirect = FALSE;
default {
touch_start(integer total_number) { if (llDetectedKey(0) != llGetOwner()) return; redirect = 1-redirect; if(redirect) { listenHandle = llListen(11223344, "", llGetOwner(), ""); llOwnerSay("@redirchat:11223344=add,sendchannel_sec=n,sendchannel:11223344=add"); llSay(0, "Chat redirected to channel 11223344, and all other channels are restricted."); } else { llListenRemove(listenHandle); llOwnerSay("@redirchat:11223344=rem,sendchannel_sec=n,sendchannel:11223344=rem"); llSay(0, "Chat back on public channel, and all channels are again free."); } } listen(integer channel, string name, key id, string message) { llSay(0, name + ": " + message); }
}
</lsl>