mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
offline modudle v2 do flag offline ims
This commit is contained in:
@@ -672,7 +672,7 @@ namespace OpenSim.Groups
|
||||
|
||||
serviceLocation = group.ServiceLocation;
|
||||
name = group.GroupName;
|
||||
bool isLocal = (group.ServiceLocation == string.Empty);
|
||||
bool isLocal = (group.ServiceLocation.Length == 0);
|
||||
//m_log.DebugFormat("[XXX]: IsLocal? {0}", isLocal);
|
||||
return isLocal;
|
||||
}
|
||||
|
||||
@@ -185,9 +185,12 @@ namespace OpenSim.OfflineIM
|
||||
// Needed for proper state management for stored group
|
||||
// invitations
|
||||
//
|
||||
Scene s = FindScene(client.AgentId);
|
||||
Scene s = client.Scene as Scene;
|
||||
if (s != null)
|
||||
{
|
||||
im.offline = 1;
|
||||
s.EventManager.TriggerIncomingInstantMessage(im);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user