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/ClientStack/ClientView.ProcessPackets.cs | |
parent | enable IRC bridge via runtime configuration (diff) | |
download | opensim-SC_OLD-1313544ac7761ec7d84c14009fc95d5d7316004d.zip opensim-SC_OLD-1313544ac7761ec7d84c14009fc95d5d7316004d.tar.gz opensim-SC_OLD-1313544ac7761ec7d84c14009fc95d5d7316004d.tar.bz2 opensim-SC_OLD-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 '')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index d92127f..05b1118 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -100,7 +100,17 @@ namespace OpenSim.Region.ClientStack | |||
100 | 100 | ||
101 | if (OnChatFromViewer != null) | 101 | if (OnChatFromViewer != null) |
102 | { | 102 | { |
103 | this.OnChatFromViewer(message, type, channel, fromPos, fromName, fromAgentID); | 103 | ChatFromViewerArgs args = new ChatFromViewerArgs(); |
104 | args.Channel = channel; | ||
105 | args.From = fromName; | ||
106 | args.Message = Util.FieldToString(message); | ||
107 | args.Type = (ChatTypeEnum)type; | ||
108 | args.Position = fromPos; | ||
109 | |||
110 | args.Scene = Scene; | ||
111 | args.Sender = this; | ||
112 | |||
113 | this.OnChatFromViewer(this, args); | ||
104 | } | 114 | } |
105 | break; | 115 | break; |
106 | case PacketType.ImprovedInstantMessage: | 116 | case PacketType.ImprovedInstantMessage: |