diff options
author | Adam Frisby | 2007-10-19 22:02:07 +0000 |
---|---|---|
committer | Adam Frisby | 2007-10-19 22:02:07 +0000 |
commit | 1313544ac7761ec7d84c14009fc95d5d7316004d (patch) | |
tree | 39a7bd27f07bb96859f5d09436d7e81e99f951a9 /OpenSim/Region/Environment/Scenes | |
parent | enable IRC bridge via runtime configuration (diff) | |
download | opensim-SC-1313544ac7761ec7d84c14009fc95d5d7316004d.zip opensim-SC-1313544ac7761ec7d84c14009fc95d5d7316004d.tar.gz opensim-SC-1313544ac7761ec7d84c14009fc95d5d7316004d.tar.bz2 opensim-SC-1313544ac7761ec7d84c14009fc95d5d7316004d.tar.xz |
* Major structural change: Begun converting Events to use (caller, args) syntax to conform with .NET guidelines.
* OnChatFromViewer has been converted as an example.
* Bug: SimpleApp's NPC client does not implement a Scene property and will likely crash with a NullReferenceException when it attempts to chat.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index df8b190..71f8037 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | |||
@@ -70,7 +70,22 @@ namespace OpenSim.Region.Environment.Scenes | |||
70 | { | 70 | { |
71 | if (m_simChatModule != null) | 71 | if (m_simChatModule != null) |
72 | { | 72 | { |
73 | m_simChatModule.SimChat(message, type, channel, fromPos, fromName, fromAgentID); | 73 | ChatFromViewerArgs args = new ChatFromViewerArgs(); |
74 | |||
75 | args.Message = OpenSim.Framework.Utilities.Util.FieldToString(message); | ||
76 | args.Channel = channel; | ||
77 | args.Type = (ChatTypeEnum)type; | ||
78 | args.Position = fromPos; | ||
79 | |||
80 | ScenePresence user = this.GetScenePresence(fromAgentID); | ||
81 | if (user != null) | ||
82 | args.Sender = user.ControllingClient; | ||
83 | else | ||
84 | args.Sender = null; | ||
85 | |||
86 | args.From = fromName; | ||
87 | |||
88 | m_simChatModule.SimChat(this, args); | ||
74 | } | 89 | } |
75 | } | 90 | } |
76 | 91 | ||