diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs | 8 |
1 files changed, 6 insertions, 2 deletions
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 | { |