make it so the IRC bridge only relays channel 0 messages
not all of them (like it was doing before)0.6.0-stable
parent
a3da86c6d7
commit
1f5eb2ef65
|
@ -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)
|
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)
|
foreach (Scene s in m_scenes)
|
||||||
{
|
{
|
||||||
s.ForEachScenePresence(delegate(ScenePresence presence)
|
s.ForEachScenePresence(delegate(ScenePresence presence)
|
||||||
|
|
Loading…
Reference in New Issue