From 8fd0378ae6d7aa7b85bbbd011ab24991f261770a Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 14 May 2008 04:06:33 +0000 Subject: * Removed 19 warnings --- OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs | 2 +- OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs | 4 ++-- .../Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs | 2 +- OpenSim/Region/Environment/Scenes/InnerScene.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs index 9f3429e..9e5f376 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs @@ -252,7 +252,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat if ((m_irc.Enabled) && (m_irc.Connected)) { - string clientName = client.FirstName + " " + client.LastName; + string clientName = client.Name; // handles simple case. May not work for hundred connecting in per second. // and the NewClients calles getting interleved // but filters out multiple reports diff --git a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs index 6edc44d..f9e81f0 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs @@ -139,7 +139,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Groups m_grouplistmap.Add(client.AgentId, testGroupList); } } - m_log.Info("[GROUP]: Adding " + client.FirstName + " " + client.LastName + " to OpenSimulator Tester group"); + m_log.Info("[GROUP]: Adding " + client.Name + " to OpenSimulator Tester group"); } private void OnAgentDataUpdateRequest(IClientAPI remoteClient, LLUUID AgentID, LLUUID SessionID) @@ -210,7 +210,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Groups IClientAPI cli = m_iclientmap[agentID]; if (cli != null) { - m_log.Info("[GROUP]: Removing all reference to groups for " + cli.FirstName + " " + cli.LastName); + m_log.Info("[GROUP]: Removing all reference to groups for " + cli.Name); } else { diff --git a/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs index 9121f7a..7a15708 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs @@ -326,7 +326,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm { DeliverMessage(e.Type, e.Channel, - e.Sender.FirstName + " " + e.Sender.LastName, + e.Sender.Name, e.Sender.AgentId, e.Message); } diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 5800f70..b7f39ca 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs @@ -787,7 +787,7 @@ namespace OpenSim.Region.Environment.Scenes { if (!presence.IsChildAgent) { - string name = presence.ControllingClient.FirstName + " " + presence.ControllingClient.LastName; + string name = presence.ControllingClient.Name; if (String.Compare(avatarName, name, true) == 0) { -- cgit v1.1