From 176920f8d3ddf8dd419e58e059d864f04e74a538 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 2 Feb 2009 17:27:23 +0000 Subject: * Make it more obvious that there is an enabled switch for chat in OpenSim.ini.example. * Add default information for other chat settings --- OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs | 4 ++-- bin/OpenSim.ini.example | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs index df42f07..1109166 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs @@ -170,7 +170,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat case ChatSourceType.Agent: if (!(scene is Scene)) { - m_log.WarnFormat("[CHAT] scene {0} is not a Scene object, cannot obtain scene presence for {1}", + m_log.WarnFormat("[CHAT]: scene {0} is not a Scene object, cannot obtain scene presence for {1}", scene.RegionInfo.RegionName, c.Sender.AgentId); return; } @@ -191,7 +191,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat if (message.Length >= 1000) // libomv limit message = message.Substring(0, 1000); - // m_log.DebugFormat("[CHAT] DCTA: fromID {0} fromName {1}, cType {2}, sType {3}", fromID, fromName, c.Type, sourceType); + // m_log.DebugFormat("[CHAT]: DCTA: fromID {0} fromName {1}, cType {2}, sType {3}", fromID, fromName, c.Type, sourceType); foreach (Scene s in m_scenes) { diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 98da6ec..ebca45d 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -296,8 +296,16 @@ InterregionComms = "RESTComms" [Chat] + ; Controls whether the chat module is enabled. Default is true. + enabled = true; + + ; Distance in meters that whispers should travel. Default is 10m whisper_distance = 10 + + ; Distance in meters that ordinary chat should travel. Default is 30m say_distance = 30 + + ; Distance in meters that shouts should travel. Default is 100m shout_distance = 100 @@ -988,4 +996,4 @@ InterregionComms = "RESTComms" active_trees = false ; Density of tree population - tree_density = 1000.0 \ No newline at end of file + tree_density = 1000.0 -- cgit v1.1