Merge branch 'master' of ssh://opensimulator.org/var/git/opensim

LSLKeyTest
Diva Canto 2016-06-21 20:28:44 -07:00
commit 74c79d1f88
3 changed files with 21 additions and 17 deletions

View File

@ -55,7 +55,7 @@ namespace OpenSim.Capabilities.Handlers
{
private static readonly ILog m_log =
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private IUserManagement m_UserManagement;
protected IUserManagement m_UserManagement;
public GetDisplayNamesHandler(string path, IUserManagement umService, string name, string description)
: base("GET", path, name, description)
@ -120,4 +120,4 @@ namespace OpenSim.Capabilities.Handlers
}
}
}
}

View File

@ -57,16 +57,16 @@ namespace OpenSim.Region.ClientStack.Linden
private static readonly ILog m_log =
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private Scene m_scene;
private IUserManagement m_UserManager;
protected Scene m_scene;
protected IUserManagement m_UserManager;
private bool m_Enabled = false;
protected bool m_Enabled = false;
private string m_URL;
protected string m_URL;
#region ISharedRegionModule Members
public void Initialise(IConfigSource source)
public virtual void Initialise(IConfigSource source)
{
IConfig config = source.Configs["ClientStack.LindenCaps"];
if (config == null)
@ -77,7 +77,7 @@ namespace OpenSim.Region.ClientStack.Linden
m_Enabled = true;
}
public void AddRegion(Scene s)
public virtual void AddRegion(Scene s)
{
if (!m_Enabled)
return;
@ -85,7 +85,7 @@ namespace OpenSim.Region.ClientStack.Linden
m_scene = s;
}
public void RemoveRegion(Scene s)
public virtual void RemoveRegion(Scene s)
{
if (!m_Enabled)
return;
@ -94,7 +94,7 @@ namespace OpenSim.Region.ClientStack.Linden
m_scene = null;
}
public void RegionLoaded(Scene s)
public virtual void RegionLoaded(Scene s)
{
if (!m_Enabled)
return;
@ -103,22 +103,22 @@ namespace OpenSim.Region.ClientStack.Linden
m_scene.EventManager.OnRegisterCaps += RegisterCaps;
}
public void PostInitialise()
public virtual void PostInitialise()
{
}
public void Close() { }
public virtual void Close() { }
public string Name { get { return "GetDisplayNamesModule"; } }
public virtual string Name { get { return "GetDisplayNamesModule"; } }
public Type ReplaceableInterface
public virtual Type ReplaceableInterface
{
get { return null; }
}
#endregion
public void RegisterCaps(UUID agentID, Caps caps)
public virtual void RegisterCaps(UUID agentID, Caps caps)
{
UUID capID = UUID.Random();

View File

@ -154,6 +154,12 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
#endregion
public virtual void OnViewerInstantMessage(IClientAPI client, GridInstantMessage im)
{
im.fromAgentName = client.FirstName + " " + client.LastName;
OnInstantMessage(client, im);
}
public virtual void OnInstantMessage(IClientAPI client, GridInstantMessage im)
{
byte dialog = im.dialog;
@ -198,8 +204,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
if (m_TransferModule != null)
{
if (client != null)
im.fromAgentName = client.FirstName + " " + client.LastName;
m_TransferModule.SendInstantMessage(im,
delegate(bool success)
{