From fac91d0ff5c3ad5913e5168386854118571b077a Mon Sep 17 00:00:00 2001
From: Sean Dague
Date: Mon, 17 Dec 2007 17:28:59 +0000
Subject: ignore Primitive for the IRC relay

---
 OpenSim/Region/Environment/Modules/ChatModule.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'OpenSim/Region')

diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs
index 75d3670..3ad68cd 100644
--- a/OpenSim/Region/Environment/Modules/ChatModule.cs
+++ b/OpenSim/Region/Environment/Modules/ChatModule.cs
@@ -301,7 +301,9 @@ 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))
+            if ((matches.Count == 1) && (matches[0].Groups.Count == 5) &&
+                (matches[0].Groups[2].Value != "Primitive")
+                )
             {
                 result = new Dictionary<string, string>();
                 result.Add("nick", matches[0].Groups[1].Value);
-- 
cgit v1.1