about summary refs log tree commit diff
path: root/IrcTokens/Protocol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'IrcTokens/Protocol.cs')
-rw-r--r--IrcTokens/Protocol.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/IrcTokens/Protocol.cs b/IrcTokens/Protocol.cs
index b2af6fa..3769ea3 100644
--- a/IrcTokens/Protocol.cs
+++ b/IrcTokens/Protocol.cs
@@ -5,14 +5,14 @@ using System.Text;
 
 namespace IrcTokens
 {
-    public class Protocol
+    internal class Protocol
     {
-        private static readonly string[] TagUnescaped = new []
+        private static readonly string[] TagUnescaped =
         {
             "\\", " ", ";", "\r", "\n"
         };
 
-        private static readonly string[] TagEscaped = new []
+        private static readonly string[] TagEscaped =
         {
             "\\\\", "\\s", "\\:", "\\r", "\\n"
         };
@@ -65,7 +65,7 @@ namespace IrcTokens
         {
             for (var i = 0; i < TagUnescaped.Length; ++i)
             {
-                val = val.Replace(TagUnescaped[i], TagEscaped[i]);
+                val = val.Replace(TagUnescaped[i], TagEscaped[i], StringComparison.Ordinal);
             }
 
             return val;