aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorDiva Canto2016-06-21 20:28:44 -0700
committerDiva Canto2016-06-21 20:28:44 -0700
commit74c79d1f88508990dcc77cbf1e3d1341fb1a7e32 (patch)
tree126c6a7c404d4f21d35ae49d95da801b7e08e48d /OpenSim/Region
parentMantis #7932: Some objects were being serialized with PCode=9 and State != 0 ... (diff)
parentFix a dumb mistake (diff)
downloadopensim-SC_OLD-74c79d1f88508990dcc77cbf1e3d1341fb1a7e32.zip
opensim-SC_OLD-74c79d1f88508990dcc77cbf1e3d1341fb1a7e32.tar.gz
opensim-SC_OLD-74c79d1f88508990dcc77cbf1e3d1341fb1a7e32.tar.bz2
opensim-SC_OLD-74c79d1f88508990dcc77cbf1e3d1341fb1a7e32.tar.xz
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/GetDisplayNamesModule.cs26
-rw-r--r--OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs8
2 files changed, 19 insertions, 15 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetDisplayNamesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetDisplayNamesModule.cs
index 6617bbc..eabacb4 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/GetDisplayNamesModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/GetDisplayNamesModule.cs
@@ -57,16 +57,16 @@ namespace OpenSim.Region.ClientStack.Linden
57 private static readonly ILog m_log = 57 private static readonly ILog m_log =
58 LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 58 LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
59 59
60 private Scene m_scene; 60 protected Scene m_scene;
61 private IUserManagement m_UserManager; 61 protected IUserManagement m_UserManager;
62 62
63 private bool m_Enabled = false; 63 protected bool m_Enabled = false;
64 64
65 private string m_URL; 65 protected string m_URL;
66 66
67 #region ISharedRegionModule Members 67 #region ISharedRegionModule Members
68 68
69 public void Initialise(IConfigSource source) 69 public virtual void Initialise(IConfigSource source)
70 { 70 {
71 IConfig config = source.Configs["ClientStack.LindenCaps"]; 71 IConfig config = source.Configs["ClientStack.LindenCaps"];
72 if (config == null) 72 if (config == null)
@@ -77,7 +77,7 @@ namespace OpenSim.Region.ClientStack.Linden
77 m_Enabled = true; 77 m_Enabled = true;
78 } 78 }
79 79
80 public void AddRegion(Scene s) 80 public virtual void AddRegion(Scene s)
81 { 81 {
82 if (!m_Enabled) 82 if (!m_Enabled)
83 return; 83 return;
@@ -85,7 +85,7 @@ namespace OpenSim.Region.ClientStack.Linden
85 m_scene = s; 85 m_scene = s;
86 } 86 }
87 87
88 public void RemoveRegion(Scene s) 88 public virtual void RemoveRegion(Scene s)
89 { 89 {
90 if (!m_Enabled) 90 if (!m_Enabled)
91 return; 91 return;
@@ -94,7 +94,7 @@ namespace OpenSim.Region.ClientStack.Linden
94 m_scene = null; 94 m_scene = null;
95 } 95 }
96 96
97 public void RegionLoaded(Scene s) 97 public virtual void RegionLoaded(Scene s)
98 { 98 {
99 if (!m_Enabled) 99 if (!m_Enabled)
100 return; 100 return;
@@ -103,22 +103,22 @@ namespace OpenSim.Region.ClientStack.Linden
103 m_scene.EventManager.OnRegisterCaps += RegisterCaps; 103 m_scene.EventManager.OnRegisterCaps += RegisterCaps;
104 } 104 }
105 105
106 public void PostInitialise() 106 public virtual void PostInitialise()
107 { 107 {
108 } 108 }
109 109
110 public void Close() { } 110 public virtual void Close() { }
111 111
112 public string Name { get { return "GetDisplayNamesModule"; } } 112 public virtual string Name { get { return "GetDisplayNamesModule"; } }
113 113
114 public Type ReplaceableInterface 114 public virtual Type ReplaceableInterface
115 { 115 {
116 get { return null; } 116 get { return null; }
117 } 117 }
118 118
119 #endregion 119 #endregion
120 120
121 public void RegisterCaps(UUID agentID, Caps caps) 121 public virtual void RegisterCaps(UUID agentID, Caps caps)
122 { 122 {
123 UUID capID = UUID.Random(); 123 UUID capID = UUID.Random();
124 124
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs
index fb868be..2ba35df 100644
--- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs
@@ -154,6 +154,12 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
154 154
155 #endregion 155 #endregion
156 156
157 public virtual void OnViewerInstantMessage(IClientAPI client, GridInstantMessage im)
158 {
159 im.fromAgentName = client.FirstName + " " + client.LastName;
160 OnInstantMessage(client, im);
161 }
162
157 public virtual void OnInstantMessage(IClientAPI client, GridInstantMessage im) 163 public virtual void OnInstantMessage(IClientAPI client, GridInstantMessage im)
158 { 164 {
159 byte dialog = im.dialog; 165 byte dialog = im.dialog;
@@ -198,8 +204,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
198 204
199 if (m_TransferModule != null) 205 if (m_TransferModule != null)
200 { 206 {
201 if (client != null)
202 im.fromAgentName = client.FirstName + " " + client.LastName;
203 m_TransferModule.SendInstantMessage(im, 207 m_TransferModule.SendInstantMessage(im,
204 delegate(bool success) 208 delegate(bool success)
205 { 209 {