mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
== UUID.Zero is slow
This commit is contained in:
@@ -404,7 +404,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
m_log.DebugFormat("[xmlGROUPS]: OnInstantMessage called for {0}, message type {1}",
|
||||
remoteClient.Name, (InstantMessageDialog)im.dialog);
|
||||
|
||||
if (remoteClient == null || !remoteClient.IsActive || remoteClient.AgentId == UUID.Zero)
|
||||
if (remoteClient == null || !remoteClient.IsActive || remoteClient.AgentId.IsZero())
|
||||
return;
|
||||
|
||||
Scene scene = (Scene)remoteClient.Scene;
|
||||
@@ -623,7 +623,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
if (m_debugEnabled)
|
||||
m_log.DebugFormat("[xmlGROUPS]: Accepted notice {0} for {1}", noticeID, remoteClient.AgentId);
|
||||
|
||||
if (noticeID == UUID.Zero)
|
||||
if (noticeID.IsZero())
|
||||
return;
|
||||
|
||||
UUID folderID = UUID.Zero;
|
||||
@@ -691,7 +691,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
if (m_debugEnabled)
|
||||
m_log.DebugFormat("[xmlGROUPS]: Accepted notice {0} for {1}", noticeID, remoteAgentID);
|
||||
|
||||
if (noticeID == UUID.Zero)
|
||||
if (noticeID.IsZero())
|
||||
return;
|
||||
|
||||
GroupNoticeInfo notice = m_groupData.GetGroupNotice(remoteAgentID, noticeID);
|
||||
@@ -1321,7 +1321,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
if (groupInfo == null)
|
||||
return;
|
||||
|
||||
|
||||
IClientAPI ejecteeClient = GetActiveRootClient(ejecteeID);
|
||||
|
||||
// Send Message to Ejectee
|
||||
|
||||
Reference in New Issue
Block a user