From: Christopher Yeoh <yeohc@au1.ibm.com>

Patch to RegionReady which adds a field which adds to the message
whether the region is ready due to a server startup or due to an oar
file loading.
This commit is contained in:
Dr Scofield
2009-03-12 18:51:28 +00:00
parent a02c3caa0d
commit fa619bdf8c
3 changed files with 17 additions and 11 deletions

View File

@@ -107,17 +107,21 @@ namespace OpenSim.Region.CoreModules.Scripting.RegionReady
{
if (m_firstEmptyCompileQueue || m_oarFileLoading)
{
OSChatMessage c = new OSChatMessage();
if (m_firstEmptyCompileQueue)
c.Message = "server_startup,";
else
c.Message = "oar_file_load,";
m_firstEmptyCompileQueue = false;
m_oarFileLoading = false;
m_scene.Backup();
OSChatMessage c = new OSChatMessage();
c.From = "RegionReady";
if (m_lastOarLoadedOk)
c.Message = "1,";
c.Message += "1,";
else
c.Message = "0,";
c.Message += "0,";
c.Channel = m_channelNotify;
c.Message += numScriptsFailed.ToString() + "," + message;
c.Type = ChatTypeEnum.Region;