Difference between revisions of "User:Toy Wylie/RLV Documentation/recvchat sec"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with '{{Template:RLV_Documentation/Command |command=@recvchat_sec|type=Restriction |usage=#@recvchat_sec=y #@recvchat_sec=n #@recvchat_sec:<UUID>=rem #@recvchat_sec:<UUID>=add |purpose...')
 
Line 7: Line 7:
|purpose=When prevented, everything heard in public chat will be discarded except emotes. This particular command accepts exceptions issued from the same object only, opposed to the non-secure way that accepts exceptions from any object.
|purpose=When prevented, everything heard in public chat will be discarded except emotes. This particular command accepts exceptions issued from the same object only, opposed to the non-secure way that accepts exceptions from any object.
|version=1.21
|version=1.21
|seealso=recvchat
|seealso=recvchat recvemote recvemote_sec
|example=<lsl>default
|example=<lsl>default
{     
{     

Revision as of 08:32, 7 July 2010


@recvchat sec

Type

Restriction

Implemented

Implemented since RLV version 1.21

Usage

#@recvchat_sec=y
  1. @recvchat_sec=n
  2. @recvchat_sec:<UUID>=rem
  3. @recvchat_sec:<UUID>=add

Purpose

When prevented, everything heard in public chat will be discarded except emotes. This particular command accepts exceptions issued from the same object only, opposed to the non-secure way that accepts exceptions from any object.


Example

<lsl>default

{

   touch_start(integer total_number)
   {
       if (llDetectedKey(0) != llGetOwner()) return;

       llSay(0, "/me is hiding the chat, will then send a test message.");
       llSleep(0.5);
       llOwnerSay("@recvemote_sec=n");
       llSay(0, "/me sends the test message.");
       llSleep(0.5);
       llOwnerSay("@recvemote_sec=y");
       llSay(0, "/me enables chat once again readable, but hiding the chat again, but this time, add an exception for this prim.");
       llSleep(0.5);
       llOwnerSay("@recvemote_sec=n,recvemote:" + (string)llGetKey() + "=add");
       llSay(0, "/me sends another test message with the exception added.");
       llOwnerSay("@recvemote_sec=y,recvemote:" + (string)llGetKey() + "=rem");
       llSay(0, "/me lift the restrictions.");
   }

}

</lsl>