mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Start implementing a test for 'share with group' object functionality. Not yet complete.
While implementing this, a bug was fixed in scene setup helpers where module RegionLoaded() was called immediately after AddRegion() instead of waiting for all AddRegions() to complete. Also, XmlRpcGroupsModule non-message functionality will now work without a message transfer module (as indicated in the comments but with a contradictory implementation)
This commit is contained in:
@@ -163,9 +163,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
if (m_msgTransferModule == null)
|
||||
{
|
||||
m_groupsEnabled = false;
|
||||
m_log.Error("[GROUPS]: Could not get MessageTransferModule");
|
||||
Close();
|
||||
return;
|
||||
m_log.Warn("[GROUPS]: Could not get MessageTransferModule");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1299,7 +1297,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
if (m_debugEnabled) m_log.InfoFormat("[GROUPS]: MsgTo ({0}) is local, delivering directly", localClient.Name);
|
||||
localClient.SendInstantMessage(msg);
|
||||
}
|
||||
else
|
||||
else if (m_msgTransferModule != null)
|
||||
{
|
||||
if (m_debugEnabled) m_log.InfoFormat("[GROUPS]: MsgTo ({0}) is not local, delivering via TransferModule", msgTo);
|
||||
m_msgTransferModule.SendInstantMessage(msg, delegate(bool success) { if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: Message Sent: {0}", success?"Succeeded":"Failed"); });
|
||||
|
||||
Reference in New Issue
Block a user