reformatting.

remotes/origin/0.6.7-post-fixes
dr scofield (aka dirk husemann) 2009-09-09 08:28:13 +02:00
parent 7796033f0d
commit 62358014ed
1 changed files with 16 additions and 17 deletions

View File

@ -9524,29 +9524,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (NotecardCache.IsCached(assetID)) if (NotecardCache.IsCached(assetID))
{ {
AsyncCommands. AsyncCommands.DataserverPlugin.DataserverReply(assetID.ToString(),
DataserverPlugin.DataserverReply(assetID.ToString(), NotecardCache.GetLine(assetID, line, m_notecardLineReadCharsMax));
NotecardCache.GetLine(assetID, line, m_notecardLineReadCharsMax));
ConditionalScriptSleep(100); ConditionalScriptSleep(100);
return tid.ToString(); return tid.ToString();
} }
WithNotecard(assetID, delegate (UUID id, AssetBase a) WithNotecard(assetID, delegate (UUID id, AssetBase a)
{ {
if (a == null || a.Type != 7) if (a == null || a.Type != 7)
{ {
ShoutError("Notecard '" + name + "' could not be found."); ShoutError("Notecard '" + name + "' could not be found.");
return; return;
} }
System.Text.UTF8Encoding enc = System.Text.UTF8Encoding enc =
new System.Text.UTF8Encoding(); new System.Text.UTF8Encoding();
string data = enc.GetString(a.Data); string data = enc.GetString(a.Data);
//m_log.Debug(data); //m_log.Debug(data);
NotecardCache.Cache(id, data); NotecardCache.Cache(id, data);
AsyncCommands.DataserverPlugin.DataserverReply(id.ToString(), AsyncCommands.DataserverPlugin.DataserverReply(id.ToString(),
NotecardCache.GetLine(id, line, m_notecardLineReadCharsMax)); NotecardCache.GetLine(id, line, m_notecardLineReadCharsMax));
}); });
ConditionalScriptSleep(100); ConditionalScriptSleep(100);
return tid.ToString(); return tid.ToString();