make it so prims don't relay into IRC

afrisby
Sean Dague 2007-12-17 19:43:48 +00:00
parent fac91d0ff5
commit f9540e3f11
1 changed files with 2 additions and 4 deletions

View File

@ -165,7 +165,7 @@ namespace OpenSim.Region.Environment.Modules
if (e.Message.Length > 0)
{
if (m_irc.Connected)
if (m_irc.Connected && (avatar != null)) // this is to keep objects from talking to IRC
{
m_irc.PrivMsg(fromName, scene.RegionInfo.RegionName, e.Message);
}
@ -301,9 +301,7 @@ namespace OpenSim.Region.Environment.Modules
Regex RE = new Regex(regex, RegexOptions.Multiline);
MatchCollection matches = RE.Matches(input);
// Get some direct matches $1 $4 is a
if ((matches.Count == 1) && (matches[0].Groups.Count == 5) &&
(matches[0].Groups[2].Value != "Primitive")
)
if ((matches.Count == 1) && (matches[0].Groups.Count == 5))
{
result = new Dictionary<string, string>();
result.Add("nick", matches[0].Groups[1].Value);