Fix menu activation on helper click for all avatars. (#21)

It was broken for some.
This commit is contained in:
Sei-Lisa 2017-08-29 10:48:51 +02:00 committed by codeviolet
parent 77fe80bb66
commit 2d9b5aebfa
2 changed files with 6 additions and 6 deletions

View file

@ -819,7 +819,7 @@ default
else if (llGetOwnerKey(id) == llGetOwner()) else if (llGetOwnerKey(id) == llGetOwner())
{ {
list data = llParseString2List(msg, ["|"], []); list data = llParseString2List(msg, ["|"], []);
integer num = (integer)llList2String(data, 1); integer num = llList2Integer(data, 1);
if (llList2String(data, 0) == "REG") if (llList2String(data, 0) == "REG")
{ {
HELPER_KEY_LIST = llListReplaceList(HELPER_KEY_LIST, [id], num, num); HELPER_KEY_LIST = llListReplaceList(HELPER_KEY_LIST, [id], num, num);
@ -827,7 +827,7 @@ default
} }
else if (llList2String(data, 0) == "MENU") else if (llList2String(data, 0) == "MENU")
{ {
if (llList2String(data, 1) == controller) if (llList2Key(data, 2) == controller)
{ {
llMessageLinked(LINK_SET, 90005, "", llDumpList2String([controller, llList2String(SITTERS, num)], "|")); llMessageLinked(LINK_SET, 90005, "", llDumpList2String([controller, llList2String(SITTERS, num)], "|"));
} }

View file

@ -1,6 +1,6 @@
/* /*
* This Source Code Form is subject to the terms of the Mozilla Public * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
* *
* Copyright (c) the AVsitter Contributors (http://avsitter.github.io) * Copyright (c) the AVsitter Contributors (http://avsitter.github.io)
@ -8,7 +8,7 @@
* https://avsitter.github.io/TRADEMARK.mediawiki * https://avsitter.github.io/TRADEMARK.mediawiki
* *
* Please consider supporting continued development of AVsitter and * Please consider supporting continued development of AVsitter and
* receive automatic updates and other benefits! All details and user * receive automatic updates and other benefits! All details and user
* instructions can be found at http://avsitter.github.io * instructions can be found at http://avsitter.github.io
*/ */
@ -259,7 +259,7 @@ default
{ {
if (llGetStartParameter() != 0) if (llGetStartParameter() != 0)
{ {
llRegionSay(comm_channel, "MENU|" + (string)llDetectedKey(0)); llRegionSay(comm_channel, "MENU|" + (string)sitter_number + "|" + (string)llDetectedKey(0));
} }
} }
run_time_permissions(integer perm) run_time_permissions(integer perm)