From 1f5eb2ef65436b948c345dc478893ed801d55995 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 14 Apr 2008 14:49:16 +0000 Subject: make it so the IRC bridge only relays channel 0 messages not all of them (like it was doing before) --- OpenSim/Region/Environment/Modules/ChatModule.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/Environment/Modules') diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs index 08c0a11..f854409 100644 --- a/OpenSim/Region/Environment/Modules/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/ChatModule.cs @@ -275,16 +275,19 @@ namespace OpenSim.Region.Environment.Modules } } - if (e.Message.Length > 0) - { - if (m_irc.Connected && (avatar != null)) // this is to keep objects from talking to IRC - { - m_irc.PrivMsg(fromName, scene.RegionInfo.RegionName, e.Message); - } - } + // We only want to relay stuff on channel 0 if (e.Channel == 0) { + // IRC stuff + if (e.Message.Length > 0) + { + if (m_irc.Connected && (avatar != null)) // this is to keep objects from talking to IRC + { + m_irc.PrivMsg(fromName, scene.RegionInfo.RegionName, e.Message); + } + } + foreach (Scene s in m_scenes) { s.ForEachScenePresence(delegate(ScenePresence presence) -- cgit v1.1