From 24e15088ea796afec01a197c6812c1c52e2de324 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Fri, 25 Jul 2008 10:05:50 +0000 Subject: renaming the increasingly ill-named ChatFromViewerArgs to OSChatMessage --- OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs | 4 ++-- OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs | 6 +++--- .../Environment/Modules/Scripting/WorldComm/WorldCommModule.cs | 2 +- OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/Environment/Modules') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs index 5414322..0e397d6 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs @@ -105,7 +105,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat #endregion #region ISimChat Members - public void SimBroadcast(Object sender, ChatFromViewerArgs c) + public void SimBroadcast(Object sender, OSChatMessage c) { // We only want to relay stuff on channel 0 and on the debug channel if (c.Channel != 0 && c.Channel != DEBUG_CHANNEL) return; @@ -140,7 +140,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat }); } - public void SimChat(Object sender, ChatFromViewerArgs e) + public void SimChat(Object sender, OSChatMessage e) { // early return if not on public or debug channel if (e.Channel != 0 && e.Channel != DEBUG_CHANNEL) return; diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs index aa1d80c..9df05e0 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs @@ -171,7 +171,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat #region ISimChat Members - public void SimChat(Object sender, ChatFromViewerArgs e) + public void SimChat(Object sender, OSChatMessage e) { // We only want to relay stuff on channel 0 if (e.Channel != 0) return; @@ -631,7 +631,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat // Any chat ??? if (data != null) { - ChatFromViewerArgs c = new ChatFromViewerArgs(); + OSChatMessage c = new OSChatMessage(); c.Message = data["msg"]; c.Type = ChatTypeEnum.Say; c.Channel = 0; @@ -679,7 +679,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat { try { - ChatFromViewerArgs c = new ChatFromViewerArgs(); + OSChatMessage c = new OSChatMessage(); c.From = sender; c.Message = String.Format(format, args); c.Type = ChatTypeEnum.Say; diff --git a/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs index 4afbdc4..2f67dee 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs @@ -322,7 +322,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm * * *****************************************************************/ - private void DeliverClientMessage(Object sender, ChatFromViewerArgs e) + private void DeliverClientMessage(Object sender, OSChatMessage e) { DeliverMessage(e.Type, e.Channel, diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs index 2ae4ae0..d84283b 100644 --- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs @@ -128,7 +128,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC private void SendOnChatFromViewer(string message, ChatTypeEnum chatType) { - ChatFromViewerArgs chatFromViewer = new ChatFromViewerArgs(); + OSChatMessage chatFromViewer = new OSChatMessage(); chatFromViewer.Channel = 0; chatFromViewer.From = Name; chatFromViewer.Message = message; @@ -155,7 +155,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC public event Action OnConnectionClosed; public event ImprovedInstantMessage OnInstantMessage; - public event ChatFromViewer OnChatFromViewer; + public event ChatMessage OnChatFromViewer; public event TextureRequest OnRequestTexture; public event RezObject OnRezObject; public event ModifyTerrain OnModifyTerrain; -- cgit v1.1