try fix some whitespaces VS decided to change
parent
f2c8f83215
commit
0b21724fe4
|
@ -86,7 +86,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
private bool m_groupsEnabled = false;
|
private bool m_groupsEnabled = false;
|
||||||
private bool m_groupNoticesEnabled = true;
|
private bool m_groupNoticesEnabled = true;
|
||||||
private bool m_debugEnabled = false;
|
private bool m_debugEnabled = false;
|
||||||
private int m_levelGroupCreate = 0;
|
private int m_levelGroupCreate = 0;
|
||||||
|
|
||||||
#region Region Module interfaceBase Members
|
#region Region Module interfaceBase Members
|
||||||
|
|
||||||
|
@ -116,9 +116,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
|
|
||||||
m_log.InfoFormat("[GROUPS]: Initializing {0}", this.Name);
|
m_log.InfoFormat("[GROUPS]: Initializing {0}", this.Name);
|
||||||
|
|
||||||
m_groupNoticesEnabled = groupsConfig.GetBoolean("NoticesEnabled", true);
|
m_groupNoticesEnabled = groupsConfig.GetBoolean("NoticesEnabled", true);
|
||||||
m_debugEnabled = groupsConfig.GetBoolean("DebugEnabled", false);
|
m_debugEnabled = groupsConfig.GetBoolean("DebugEnabled", false);
|
||||||
m_levelGroupCreate = groupsConfig.GetInt("LevelGroupCreate", 0);
|
m_levelGroupCreate = groupsConfig.GetInt("LevelGroupCreate", 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,8 +263,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
sp.ControllingClient.OnUUIDGroupNameRequest += HandleUUIDGroupNameRequest;
|
sp.ControllingClient.OnUUIDGroupNameRequest += HandleUUIDGroupNameRequest;
|
||||||
// Used for Notices and Group Invites/Accept/Reject
|
// Used for Notices and Group Invites/Accept/Reject
|
||||||
sp.ControllingClient.OnInstantMessage += OnInstantMessage;
|
sp.ControllingClient.OnInstantMessage += OnInstantMessage;
|
||||||
// comented out bc some viewers wrongly stoped suporting it
|
|
||||||
// sp.ControllingClient.AddGenericPacketHandler("avatargroupsrequest", AvatarGroupsRequest);
|
// comented out because some viewers no longer suport it
|
||||||
|
// sp.ControllingClient.AddGenericPacketHandler("avatargroupsrequest", AvatarGroupsRequest);
|
||||||
|
|
||||||
// we should send a DataUpdate here for compatibility,
|
// we should send a DataUpdate here for compatibility,
|
||||||
// but this is a bad place and a bad thread to do it
|
// but this is a bad place and a bad thread to do it
|
||||||
|
@ -288,6 +289,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this should be the right message to ask for other avatars groups
|
/* this should be the right message to ask for other avatars groups
|
||||||
|
|
||||||
private void AvatarGroupsRequest(Object sender, string method, List<String> args)
|
private void AvatarGroupsRequest(Object sender, string method, List<String> args)
|
||||||
|
@ -310,8 +312,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// this should not be used to send groups memberships, but some viewers do expect it
|
// this should not be used to send groups memberships, but some viewers do expect it
|
||||||
// it does send unnecessary memberships, when viewers just want other properties information
|
// it does send unnecessary memberships, when viewers just want other properties information
|
||||||
private void OnRequestAvatarProperties(IClientAPI remoteClient, UUID avatarID)
|
private void OnRequestAvatarProperties(IClientAPI remoteClient, UUID avatarID)
|
||||||
{
|
{
|
||||||
if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);
|
if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);
|
||||||
|
@ -338,25 +340,25 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
client.OnInstantMessage -= OnInstantMessage;
|
client.OnInstantMessage -= OnInstantMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
lock (m_ActiveClients)
|
lock (m_ActiveClients)
|
||||||
{
|
{
|
||||||
if (m_ActiveClients.ContainsKey(AgentId))
|
if (m_ActiveClients.ContainsKey(AgentId))
|
||||||
{
|
{
|
||||||
IClientAPI client = m_ActiveClients[AgentId];
|
IClientAPI client = m_ActiveClients[AgentId];
|
||||||
client.OnUUIDGroupNameRequest -= HandleUUIDGroupNameRequest;
|
client.OnUUIDGroupNameRequest -= HandleUUIDGroupNameRequest;
|
||||||
client.OnAgentDataUpdateRequest -= OnAgentDataUpdateRequest;
|
client.OnAgentDataUpdateRequest -= OnAgentDataUpdateRequest;
|
||||||
client.OnDirFindQuery -= OnDirFindQuery;
|
client.OnDirFindQuery -= OnDirFindQuery;
|
||||||
client.OnInstantMessage -= OnInstantMessage;
|
client.OnInstantMessage -= OnInstantMessage;
|
||||||
|
|
||||||
m_ActiveClients.Remove(AgentId);
|
m_ActiveClients.Remove(AgentId);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (m_debugEnabled) m_log.WarnFormat("[GROUPS]: Client closed that wasn't registered here.");
|
if (m_debugEnabled) m_log.WarnFormat("[GROUPS]: Client closed that wasn't registered here.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnAgentDataUpdateRequest(IClientAPI remoteClient, UUID dataForAgentID, UUID sessionID)
|
private void OnAgentDataUpdateRequest(IClientAPI remoteClient, UUID dataForAgentID, UUID sessionID)
|
||||||
|
|
Loading…
Reference in New Issue