Skip to content

Commit

Permalink
Merge pull request #1017 from OpenCollarTeam/Medea-Destiny-patch-6
Browse files Browse the repository at this point in the history
Update oc_detach.lsl
  • Loading branch information
SilkieSabra authored Mar 4, 2024
2 parents 35f1854 + 1a050f7 commit 98c58b4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/Apps/oc_detach.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ Copyright ©2021
Aria (Tashia Redrose)
* Dec 2019 - Rewrote Outfits & Reset Script Version to 1.0
Medea (Medea Destiny)
Nov 2023 - Fix to ignore case (i.e either "menu detach" or "menu Detach") issue #875
et al.
Licensed under the GPLv2. See LICENSE for full details.
Expand Down Expand Up @@ -84,17 +85,19 @@ Menu(key kID, integer iAuth) {
}

UserCommand(integer iNum, string sStr, key kID) {
if (llSubStringIndex(sStr,llToLower(g_sSubMenu)) && sStr != "menu "+g_sSubMenu) return;
sStr=llToLower(sStr);
//if (llSubStringIndex(sStr,llToLower(g_sSubMenu)) && sStr != "menu "+llToLower(g_sSubMenu)) return;

if (sStr==llToLower(g_sSubMenu) || sStr == "menu "+llToLower(g_sSubMenu)) Menu(kID, iNum);

if (sStr==g_sSubMenu || sStr == "menu "+g_sSubMenu) Menu(kID, iNum);
//else if (iNum!=CMD_OWNER && iNum!=CMD_TRUSTED && kID!=g_kWearer) RelayNotify(kID,"Access denied!",0);
else {
/* else {
integer iWSuccess = 0;
string sChangetype = llList2String(llParseString2List(sStr, [" "], []),0);
string sChangevalue = llList2String(llParseString2List(sStr, [" "], []),1);
string sText;
}
}*/
}

key g_kWearer;
Expand Down

0 comments on commit 98c58b4

Please sign in to comment.