aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/WorldCommModule.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-10-19 22:02:07 +0000
committerAdam Frisby2007-10-19 22:02:07 +0000
commit1313544ac7761ec7d84c14009fc95d5d7316004d (patch)
tree39a7bd27f07bb96859f5d09436d7e81e99f951a9 /OpenSim/Region/Environment/Modules/WorldCommModule.cs
parentenable IRC bridge via runtime configuration (diff)
downloadopensim-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/Modules/WorldCommModule.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/WorldCommModule.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Modules/WorldCommModule.cs b/OpenSim/Region/Environment/Modules/WorldCommModule.cs
index 765f1b4..cf5bba3 100644
--- a/OpenSim/Region/Environment/Modules/WorldCommModule.cs
+++ b/OpenSim/Region/Environment/Modules/WorldCommModule.cs
@@ -119,13 +119,12 @@ namespace OpenSim.Region.Environment.Modules
119 client.OnChatFromViewer += DeliverClientMessage; 119 client.OnChatFromViewer += DeliverClientMessage;
120 } 120 }
121 121
122 private void DeliverClientMessage(byte[] message, byte type, int channel, LLVector3 fromPos, string fromName, 122 private void DeliverClientMessage(Object sender, ChatFromViewerArgs e)
123 LLUUID fromAgentID)
124 { 123 {
125 ASCIIEncoding ae = new ASCIIEncoding(); 124 DeliverMessage(e.Sender.AgentId.ToString(),
126 125 (int)e.Type, e.Channel,
127 DeliverMessage(fromAgentID.ToString(), type, channel, fromName, ae.GetString(message)); 126 e.Sender.FirstName + " " + e.Sender.LastName,
128 127 e.Message);
129 } 128 }
130 129
131 public int Listen(uint localID, LLUUID itemID, LLUUID hostID, int channel, string name, string id, string msg) 130 public int Listen(uint localID, LLUUID itemID, LLUUID hostID, int channel, string name, string id, string msg)