Skip to content

Commit

Permalink
Fix: #499
Browse files Browse the repository at this point in the history
  • Loading branch information
zontreck committed Mar 12, 2021
1 parent 25f75e7 commit 818a776
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/collar/oc_api.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ state active
g_iLimitRange = (integer)sVal;
} else if(sVar == "tempowner"){
g_kTempOwner = (key)sVal;
} else if(sVar == "runawaydisable"){
} else if(sVar == "runaway"){
g_iRunaway=(integer)sVal;
}
} else if(sToken == "global"){
Expand Down Expand Up @@ -640,7 +640,7 @@ state active
g_iLimitRange = TRUE;
} else if(sVar == "tempowner"){
g_kTempOwner = "";
} else if(sVar == "runawaydisable"){
} else if(sVar == "runaway"){
g_iRunaway=TRUE;
}
} else if(sToken == "global"){
Expand Down Expand Up @@ -717,11 +717,11 @@ state active
} else if(sMenu == "RunawayMenu"){
if(sMsg == "Enable" && iAuth == CMD_OWNER){
g_iRunaway=TRUE;
llMessageLinked(LINK_SET, LM_SETTING_DELETE, "AUTH_runawaydisable","origin");
llMessageLinked(LINK_SET, LM_SETTING_DELETE, "AUTH_runaway","origin");
llMessageLinked(LINK_SET, TIMEOUT_REGISTER, "5", "spring_access:"+(string)kAv);
} else if(sMsg == "Disable"){
g_iRunaway=FALSE;
llMessageLinked(LINK_SET, LM_SETTING_SAVE, "AUTH_runawaydisable=0", "origin");
llMessageLinked(LINK_SET, LM_SETTING_SAVE, "AUTH_runaway=0", "origin");
llMessageLinked(LINK_SET, TIMEOUT_REGISTER, "5", "spring_access:"+(string)kAv);
} else if(sMsg == "No"){
// return
Expand Down

0 comments on commit 818a776

Please sign in to comment.