LSL compatibility: Don't throw an exception if an invalid key is passed to llInstantMessage, instead shout about it and apply the usual delay. This now matches SL.
parent
656e64b3ed
commit
ec305a4825
|
@ -3249,10 +3249,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
UUID result;
|
UUID result;
|
||||||
if (!UUID.TryParse(user, out result))
|
if (!UUID.TryParse(user, out result))
|
||||||
{
|
{
|
||||||
if (!m_debuggerSafe)
|
ShoutError("An invalid key was passed to llInstantMessage");
|
||||||
{
|
ScriptSleep(2000);
|
||||||
throw new Exception(String.Format("An invalid key of '{0} was passed to llInstantMessage", user));
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue