Skip to content

Commit

Permalink
Merge pull request #1096 from OpenCollarTeam/Medea-Destiny-temp-attac…
Browse files Browse the repository at this point in the history
…h-patch

OBJECT_TEMP_ATTACHED rejection in oc_API for interface channel
  • Loading branch information
Pingout authored Sep 18, 2024
2 parents 95f7b99 + 9c3a2e8 commit a7b26e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/collar/oc_api.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ Medea (Medea Destiny)
the only thing the wearer can do is safeword, which will deactivate it.
Any attempt to trigger a menu/command will send the AUTH_WEARERLOCKOUT
Link message. Any script setting a wearer lockout should respond to this with a status
update.
update.
*Sept 2024 - Added rejection of interface channel commands from temp-attached objects
Yosty7b3
*Oct 2021 - Remove unused StrideOfList() function.
Expand Down Expand Up @@ -529,6 +530,7 @@ state active
return;
}
else {
if(llList2Integer(llGetObjectDetails(i,[OBJECT_TEMP_ATTACHED]),0)==1) return;
key kAuthKey=llGetOwnerKey(i);
integer iAuth=CalcAuth(kAuthKey);
if(llGetSubString(m,0,6)=="authas:"){ //messages prefixed authas:(key)=(cmd) will use the auth level of key if LOWER than object owner auth.
Expand Down

0 comments on commit a7b26e9

Please sign in to comment.