parent
5446bdff09
commit
bb2b1b1f61
|
@ -45,6 +45,7 @@ Patches
|
|||
* alex_carnell
|
||||
* webmage (IBM)
|
||||
* jimbo2120 (IBM)
|
||||
* nornalbion
|
||||
* awebb (IBM)
|
||||
* brianw/Sir_Ahzz
|
||||
* ChrisDown
|
||||
|
@ -54,7 +55,7 @@ Patches
|
|||
* A_Biondi
|
||||
* lulurun
|
||||
* Melanie Thielker
|
||||
* John R Sohn(XenReborn)
|
||||
* John R Sohn (XenReborn)
|
||||
* Xantor
|
||||
* YZh
|
||||
* Grumly57
|
||||
|
|
|
@ -811,17 +811,21 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
|
|||
|
||||
LLUUID agentId = LLUUID.Zero;
|
||||
LLUUID soundId = LLUUID.Zero;
|
||||
LLUUID regionId = LLUUID.Zero;
|
||||
|
||||
Helpers.TryParse((string) requestData["agentId"], out agentId);
|
||||
Helpers.TryParse((string) requestData["soundId"], out soundId);
|
||||
Helpers.TryParse((string) requestData["regionId"], out regionId);
|
||||
string text = (string) requestData["text"];
|
||||
string secret = (string) requestData["secret"];
|
||||
|
||||
Scene userScene = GetRandomScene();
|
||||
Scene userScene = GetSceneByUUID(regionId);
|
||||
if(userScene != null)
|
||||
{
|
||||
if (userScene.RegionInfo.regionSecret.ToString() == secret)
|
||||
{
|
||||
IClientAPI client = LocateClientObject(agentId);
|
||||
|
||||
IClientAPI client = LocateClientObject(agentId);
|
||||
if (client != null)
|
||||
{
|
||||
if (soundId != LLUUID.Zero)
|
||||
|
@ -838,8 +842,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
|
|||
{
|
||||
retparam.Add("success", false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
retparam.Add("success", false);
|
||||
}
|
||||
ret.Value = retparam;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue