about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2020-05-14 23:06:10 -0400
committerBen Harris <ben@tilde.team>2020-05-14 23:17:47 -0400
commit21f1e95fb8e935134a969bc3d729964d8d2aadfa (patch)
treedb2be27e9b5ac48e19f92b56cbad68ab59f7099e
parent304df7805b9925c2edd992fd4177eef80197f807 (diff)
rename Irc to IRC
-rw-r--r--Examples/States/Client.cs4
-rw-r--r--Examples/States/StatesSample.csproj2
-rw-r--r--Examples/Tokens/Client.cs2
-rw-r--r--Examples/Tokens/Program.cs2
-rw-r--r--Examples/Tokens/TokensSample.csproj2
-rw-r--r--IRCSharp.sln (renamed from IrcSharp.sln)4
-rw-r--r--IRCStates/Casemap.cs (renamed from IrcStates/Casemap.cs)2
-rw-r--r--IRCStates/Channel.cs (renamed from IrcStates/Channel.cs)2
-rw-r--r--IRCStates/ChannelUser.cs (renamed from IrcStates/ChannelUser.cs)2
-rw-r--r--IRCStates/Commands.cs (renamed from IrcStates/Commands.cs)2
-rw-r--r--IRCStates/Emit.cs (renamed from IrcStates/Emit.cs)2
-rw-r--r--IRCStates/Extensions.cs15
-rw-r--r--IRCStates/IRCStates.csproj (renamed from IrcStates/IrcStates.csproj)2
-rw-r--r--IRCStates/ISupport.cs (renamed from IrcStates/ISupport.cs)2
-rw-r--r--IRCStates/ISupportChanModes.cs (renamed from IrcStates/ISupportChanModes.cs)2
-rw-r--r--IRCStates/ISupportPrefix.cs (renamed from IrcStates/ISupportPrefix.cs)2
-rw-r--r--IRCStates/Numeric.cs (renamed from IrcStates/Numeric.cs)2
-rw-r--r--IRCStates/README.md (renamed from IrcStates/README.md)0
-rw-r--r--IRCStates/Server.cs (renamed from IrcStates/Server.cs)4
-rw-r--r--IRCStates/ServerDisconnectedException.cs (renamed from IrcStates/ServerDisconnectedException.cs)2
-rw-r--r--IRCStates/ServerException.cs (renamed from IrcStates/ServerException.cs)2
-rw-r--r--IRCStates/Tests/Cap.cs (renamed from IrcStates/Tests/Cap.cs)4
-rw-r--r--IRCStates/Tests/Casemap.cs (renamed from IrcStates/Tests/Casemap.cs)8
-rw-r--r--IRCStates/Tests/Channel.cs (renamed from IrcStates/Tests/Channel.cs)8
-rw-r--r--IRCStates/Tests/Emit.cs (renamed from IrcStates/Tests/Emit.cs)4
-rw-r--r--IRCStates/Tests/ISupport.cs (renamed from IrcStates/Tests/ISupport.cs)12
-rw-r--r--IRCStates/Tests/Mode.cs (renamed from IrcStates/Tests/Mode.cs)4
-rw-r--r--IRCStates/Tests/Motd.cs (renamed from IrcStates/Tests/Motd.cs)4
-rw-r--r--IRCStates/Tests/Sasl.cs (renamed from IrcStates/Tests/Sasl.cs)4
-rw-r--r--IRCStates/Tests/User.cs (renamed from IrcStates/Tests/User.cs)4
-rw-r--r--IRCStates/Tests/Who.cs (renamed from IrcStates/Tests/Who.cs)4
-rw-r--r--IRCStates/User.cs (renamed from IrcStates/User.cs)2
-rw-r--r--IRCTokens/Extensions.cs (renamed from IrcTokens/Extensions.cs)2
-rw-r--r--IRCTokens/Hostmask.cs (renamed from IrcTokens/Hostmask.cs)2
-rw-r--r--IRCTokens/IRCTokens.csproj (renamed from IrcTokens/IrcTokens.csproj)0
-rw-r--r--IRCTokens/Line.cs (renamed from IrcTokens/Line.cs)2
-rw-r--r--IRCTokens/README.md (renamed from IrcTokens/README.md)4
-rw-r--r--IRCTokens/StatefulDecoder.cs (renamed from IrcTokens/StatefulDecoder.cs)2
-rw-r--r--IRCTokens/StatefulEncoder.cs (renamed from IrcTokens/StatefulEncoder.cs)2
-rw-r--r--IRCTokens/Tests/Data/JoinModel.cs (renamed from IrcTokens/Tests/Data/JoinModel.cs)2
-rw-r--r--IRCTokens/Tests/Data/SplitModel.cs (renamed from IrcTokens/Tests/Data/SplitModel.cs)2
-rw-r--r--IRCTokens/Tests/Data/msg-join.yaml (renamed from IrcTokens/Tests/Data/msg-join.yaml)0
-rw-r--r--IRCTokens/Tests/Data/msg-split.yaml (renamed from IrcTokens/Tests/Data/msg-split.yaml)0
-rw-r--r--IRCTokens/Tests/Format.cs (renamed from IrcTokens/Tests/Format.cs)2
-rw-r--r--IRCTokens/Tests/Hostmask.cs (renamed from IrcTokens/Tests/Hostmask.cs)12
-rw-r--r--IRCTokens/Tests/Parser.cs (renamed from IrcTokens/Tests/Parser.cs)4
-rw-r--r--IRCTokens/Tests/StatefulDecoder.cs (renamed from IrcTokens/Tests/StatefulDecoder.cs)10
-rw-r--r--IRCTokens/Tests/StatefulEncoder.cs (renamed from IrcTokens/Tests/StatefulEncoder.cs)8
-rw-r--r--IRCTokens/Tests/Tokenization.cs (renamed from IrcTokens/Tests/Tokenization.cs)2
-rw-r--r--IrcStates/Extensions.cs40
-rw-r--r--README.md2
51 files changed, 95 insertions, 120 deletions
diff --git a/Examples/States/Client.cs b/Examples/States/Client.cs
index 78d253f..e98457d 100644
--- a/Examples/States/Client.cs
+++ b/Examples/States/Client.cs
@@ -2,8 +2,8 @@ using System;
 using System.Linq;
 using System.Net.Sockets;
 using System.Threading;
-using IrcStates;
-using IrcTokens;
+using IRCStates;
+using IRCTokens;
 
 namespace StatesSample
 {
diff --git a/Examples/States/StatesSample.csproj b/Examples/States/StatesSample.csproj
index ac7b5b7..75b83cc 100644
--- a/Examples/States/StatesSample.csproj
+++ b/Examples/States/StatesSample.csproj
@@ -6,7 +6,7 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <ProjectReference Include="..\..\IrcStates\IrcStates.csproj" />
+    <ProjectReference Include="..\..\IRCStates\IRCStates.csproj" />
   </ItemGroup>
 
 </Project>
diff --git a/Examples/Tokens/Client.cs b/Examples/Tokens/Client.cs
index 3dd3933..71d1407 100644
--- a/Examples/Tokens/Client.cs
+++ b/Examples/Tokens/Client.cs
@@ -1,7 +1,7 @@
 using System;
 using System.Net.Sockets;
 using System.Threading;
-using IrcTokens;
+using IRCTokens;
 
 namespace TokensSample
 {
diff --git a/Examples/Tokens/Program.cs b/Examples/Tokens/Program.cs
index ba57836..e157e31 100644
--- a/Examples/Tokens/Program.cs
+++ b/Examples/Tokens/Program.cs
@@ -1,5 +1,5 @@
 using System;
-using IrcTokens;
+using IRCTokens;
 
 namespace TokensSample
 {
diff --git a/Examples/Tokens/TokensSample.csproj b/Examples/Tokens/TokensSample.csproj
index a0e98fd..6dbcdcf 100644
--- a/Examples/Tokens/TokensSample.csproj
+++ b/Examples/Tokens/TokensSample.csproj
@@ -6,7 +6,7 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <ProjectReference Include="..\..\IrcTokens\IrcTokens.csproj" />
+    <ProjectReference Include="..\..\IRCTokens\IRCTokens.csproj" />
   </ItemGroup>
 
 </Project>
diff --git a/IrcSharp.sln b/IRCSharp.sln
index 8174c7c..ff19f5e 100644
--- a/IrcSharp.sln
+++ b/IRCSharp.sln
@@ -3,11 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
 # Visual Studio Version 16
 VisualStudioVersion = 16.0.30011.22
 MinimumVisualStudioVersion = 10.0.40219.1
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IrcTokens", "IrcTokens\IrcTokens.csproj", "{9E812F45-B2CD-42D2-8378-EBEBF8697905}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IRCTokens", "IRCTokens\IRCTokens.csproj", "{9E812F45-B2CD-42D2-8378-EBEBF8697905}"
 EndProject
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TokensSample", "Examples\Tokens\TokensSample.csproj", "{A45DA39B-6B47-4713-8049-3B36E0235B67}"
 EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IrcStates", "IrcStates\IrcStates.csproj", "{233E3CB4-61F1-4368-9139-7E9F4A58ED2D}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IRCStates", "IRCStates\IRCStates.csproj", "{233E3CB4-61F1-4368-9139-7E9F4A58ED2D}"
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StatesSample", "Examples\States\StatesSample.csproj", "{BC9F6696-9D83-4F7A-9E15-CE4D3626C1AF}"
 EndProject
diff --git a/IrcStates/Casemap.cs b/IRCStates/Casemap.cs
index 67867c5..4546e57 100644
--- a/IrcStates/Casemap.cs
+++ b/IRCStates/Casemap.cs
@@ -1,6 +1,6 @@
 using System;
 
-namespace IrcStates
+namespace IRCStates
 {
     public static class Casemap
     {
diff --git a/IrcStates/Channel.cs b/IRCStates/Channel.cs
index 21ebb25..60ca3fb 100644
--- a/IrcStates/Channel.cs
+++ b/IRCStates/Channel.cs
@@ -2,7 +2,7 @@
 using System.Collections.Generic;
 using System.Linq;
 
-namespace IrcStates
+namespace IRCStates
 {
     public class Channel
     {
diff --git a/IrcStates/ChannelUser.cs b/IRCStates/ChannelUser.cs
index fab881c..8c2298b 100644
--- a/IrcStates/ChannelUser.cs
+++ b/IRCStates/ChannelUser.cs
@@ -1,6 +1,6 @@
 using System.Collections.Generic;
 
-namespace IrcStates
+namespace IRCStates
 {
     public class ChannelUser
     {
diff --git a/IrcStates/Commands.cs b/IRCStates/Commands.cs
index b5bc358..d9654ec 100644
--- a/IrcStates/Commands.cs
+++ b/IRCStates/Commands.cs
@@ -1,4 +1,4 @@
-namespace IrcStates
+namespace IRCStates
 {
     public static class Commands
     {
diff --git a/IrcStates/Emit.cs b/IRCStates/Emit.cs
index 9ca9cb5..a5f1af5 100644
--- a/IrcStates/Emit.cs
+++ b/IRCStates/Emit.cs
@@ -1,6 +1,6 @@
 using System.Collections.Generic;
 
-namespace IrcStates
+namespace IRCStates
 {
     public class Emit
     {
diff --git a/IRCStates/Extensions.cs b/IRCStates/Extensions.cs
new file mode 100644
index 0000000..c807dbb
--- /dev/null
+++ b/IRCStates/Extensions.cs
@@ -0,0 +1,15 @@
+using System.Collections.Generic;
+using System.Linq;
+
+namespace IRCStates
+{
+    public static class Extensions
+    {
+        public static void UpdateWith<TKey, TValue>(this Dictionary<TKey, TValue> dict, Dictionary<TKey, TValue> other)
+        {
+            if (dict == null || other == null || !other.Any()) return;
+
+            foreach (var (key, value) in other) dict[key] = value;
+        }
+    }
+}
diff --git a/IrcStates/IrcStates.csproj b/IRCStates/IRCStates.csproj
index 7500c8b..cf9f190 100644
--- a/IrcStates/IrcStates.csproj
+++ b/IRCStates/IRCStates.csproj
@@ -15,7 +15,7 @@
   </ItemGroup>
 
   <ItemGroup>
-    <ProjectReference Include="..\IrcTokens\IrcTokens.csproj" />
+    <ProjectReference Include="..\IRCTokens\IRCTokens.csproj" />
   </ItemGroup>
 
 </Project>
diff --git a/IrcStates/ISupport.cs b/IRCStates/ISupport.cs
index f481f5f..5fcd5b1 100644
--- a/IrcStates/ISupport.cs
+++ b/IRCStates/ISupport.cs
@@ -5,7 +5,7 @@ using System.Collections.Generic;
 using System.Globalization;
 using System.Linq;
 
-namespace IrcStates
+namespace IRCStates
 {
     public class ISupport
     {
diff --git a/IrcStates/ISupportChanModes.cs b/IRCStates/ISupportChanModes.cs
index 74a0579..68cfa67 100644
--- a/IrcStates/ISupportChanModes.cs
+++ b/IRCStates/ISupportChanModes.cs
@@ -2,7 +2,7 @@
 using System.Globalization;
 using System.Linq;
 
-namespace IrcStates
+namespace IRCStates
 {
     public class ISupportChanModes
     {
diff --git a/IrcStates/ISupportPrefix.cs b/IRCStates/ISupportPrefix.cs
index fb5114b..35c5344 100644
--- a/IrcStates/ISupportPrefix.cs
+++ b/IRCStates/ISupportPrefix.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
 using System.Globalization;
 using System.Linq;
 
-namespace IrcStates
+namespace IRCStates
 {
     public class ISupportPrefix
     {
diff --git a/IrcStates/Numeric.cs b/IRCStates/Numeric.cs
index 8639c12..1ccbd76 100644
--- a/IrcStates/Numeric.cs
+++ b/IRCStates/Numeric.cs
@@ -1,6 +1,6 @@
 // ReSharper disable InconsistentNaming
 
-namespace IrcStates
+namespace IRCStates
 {
     public static class Numeric
     {
diff --git a/IrcStates/README.md b/IRCStates/README.md
index 05daa8c..05daa8c 100644
--- a/IrcStates/README.md
+++ b/IRCStates/README.md
diff --git a/IrcStates/Server.cs b/IRCStates/Server.cs
index 2e80b75..2615080 100644
--- a/IrcStates/Server.cs
+++ b/IRCStates/Server.cs
@@ -3,9 +3,9 @@ using System.Collections.Generic;
 using System.ComponentModel.Design;
 using System.Globalization;
 using System.Linq;
-using IrcTokens;
+using IRCTokens;
 
-namespace IrcStates
+namespace IRCStates
 {
     public class Server
     {
diff --git a/IrcStates/ServerDisconnectedException.cs b/IRCStates/ServerDisconnectedException.cs
index c3e014f..4d0bab6 100644
--- a/IrcStates/ServerDisconnectedException.cs
+++ b/IRCStates/ServerDisconnectedException.cs
@@ -1,6 +1,6 @@
 using System;
 
-namespace IrcStates
+namespace IRCStates
 {
     public class ServerDisconnectedException : Exception
     {
diff --git a/IrcStates/ServerException.cs b/IRCStates/ServerException.cs
index 7164e76..0f44a88 100644
--- a/IrcStates/ServerException.cs
+++ b/IRCStates/ServerException.cs
@@ -1,6 +1,6 @@
 using System;
 
-namespace IrcStates
+namespace IRCStates
 {
     public class ServerException : Exception
     {
diff --git a/IrcStates/Tests/Cap.cs b/IRCStates/Tests/Cap.cs
index 3ce52f8..3c0faba 100644
--- a/IrcStates/Tests/Cap.cs
+++ b/IRCStates/Tests/Cap.cs
@@ -1,8 +1,8 @@
 using System.Collections.Generic;
-using IrcTokens;
+using IRCTokens;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcStates.Tests
+namespace IRCStates.Tests
 {
     [TestClass]
     public class Cap
diff --git a/IrcStates/Tests/Casemap.cs b/IRCStates/Tests/Casemap.cs
index 6022593..4a02444 100644
--- a/IrcStates/Tests/Casemap.cs
+++ b/IRCStates/Tests/Casemap.cs
@@ -1,7 +1,7 @@
-using IrcTokens;
+using IRCTokens;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcStates.Tests
+namespace IRCStates.Tests
 {
     [TestClass]
     public class Casemap
@@ -9,14 +9,14 @@ namespace IrcStates.Tests
         [TestMethod]
         public void Rfc1459()
         {
-            var lower = IrcStates.Casemap.CaseFold(IrcStates.Casemap.CaseMapping.Rfc1459, @"ÀTEST[]~\");
+            var lower = IRCStates.Casemap.CaseFold(IRCStates.Casemap.CaseMapping.Rfc1459, @"ÀTEST[]~\");
             Assert.AreEqual("Àtest{}^|", lower);
         }
 
         [TestMethod]
         public void Ascii()
         {
-            var lower = IrcStates.Casemap.CaseFold(IrcStates.Casemap.CaseMapping.Ascii, @"ÀTEST[]~\");
+            var lower = IRCStates.Casemap.CaseFold(IRCStates.Casemap.CaseMapping.Ascii, @"ÀTEST[]~\");
             Assert.AreEqual(@"Àtest[]~\", lower);
         }
 
diff --git a/IrcStates/Tests/Channel.cs b/IRCStates/Tests/Channel.cs
index 64a845c..6868e0f 100644
--- a/IrcStates/Tests/Channel.cs
+++ b/IRCStates/Tests/Channel.cs
@@ -1,10 +1,10 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
-using IrcTokens;
+using IRCTokens;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcStates.Tests
+namespace IRCStates.Tests
 {
     [TestClass]
     public class Channel
@@ -69,8 +69,8 @@ namespace IrcStates.Tests
             var chanUser = channel.Users[user.NickNameLower];
 
             Assert.AreEqual(channel.NameLower, user.Channels.Single());
-            CollectionAssert.AreEqual(new Dictionary<string, IrcStates.User> {{"nickname", user}}, _server.Users);
-            CollectionAssert.AreEqual(new Dictionary<string, IrcStates.Channel> {{"#chan", channel}}, _server.Channels);
+            CollectionAssert.AreEqual(new Dictionary<string, IRCStates.User> {{"nickname", user}}, _server.Users);
+            CollectionAssert.AreEqual(new Dictionary<string, IRCStates.Channel> {{"#chan", channel}}, _server.Channels);
             CollectionAssert.AreEqual(new Dictionary<string, ChannelUser> {{"nickname", chanUser}}, channel.Users);
         }
 
diff --git a/IrcStates/Tests/Emit.cs b/IRCStates/Tests/Emit.cs
index 15e9e61..07fea8c 100644
--- a/IrcStates/Tests/Emit.cs
+++ b/IRCStates/Tests/Emit.cs
@@ -1,8 +1,8 @@
 using System.Collections.Generic;
-using IrcTokens;
+using IRCTokens;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcStates.Tests
+namespace IRCStates.Tests
 {
     [TestClass]
     public class Emit
diff --git a/IrcStates/Tests/ISupport.cs b/IRCStates/Tests/ISupport.cs
index 6cd2f48..5cdcc61 100644
--- a/IrcStates/Tests/ISupport.cs
+++ b/IRCStates/Tests/ISupport.cs
@@ -1,10 +1,10 @@
 using System.Collections.Generic;
-using IrcTokens;
+using IRCTokens;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
 // ReSharper disable InconsistentNaming
 
-namespace IrcStates.Tests
+namespace IRCStates.Tests
 {
     [TestClass]
     public class ISupport
@@ -97,9 +97,9 @@ namespace IrcStates.Tests
         [TestMethod]
         public void Rfc1459()
         {
-            Assert.AreEqual(IrcStates.Casemap.CaseMapping.Rfc1459, _server.ISupport.CaseMapping);
+            Assert.AreEqual(IRCStates.Casemap.CaseMapping.Rfc1459, _server.ISupport.CaseMapping);
             _server.Parse(new Line("005 * CASEMAPPING=rfc1459 *"));
-            Assert.AreEqual(IrcStates.Casemap.CaseMapping.Rfc1459, _server.ISupport.CaseMapping);
+            Assert.AreEqual(IRCStates.Casemap.CaseMapping.Rfc1459, _server.ISupport.CaseMapping);
             var lower = _server.CaseFold(@"ÀTEST[]~\");
             Assert.AreEqual("Àtest{}^|", lower);
         }
@@ -108,7 +108,7 @@ namespace IrcStates.Tests
         public void Ascii()
         {
             _server.Parse(new Line("005 * CASEMAPPING=ascii *"));
-            Assert.AreEqual(IrcStates.Casemap.CaseMapping.Ascii, _server.ISupport.CaseMapping);
+            Assert.AreEqual(IRCStates.Casemap.CaseMapping.Ascii, _server.ISupport.CaseMapping);
             var lower = _server.CaseFold(@"ÀTEST[]~\");
             Assert.AreEqual(@"Àtest[]~\", lower);
         }
@@ -117,7 +117,7 @@ namespace IrcStates.Tests
         public void FallbackToRfc1459()
         {
             _server.Parse(new Line("005 * CASEMAPPING=nonexistent *"));
-            Assert.AreEqual(IrcStates.Casemap.CaseMapping.Rfc1459, _server.ISupport.CaseMapping);
+            Assert.AreEqual(IRCStates.Casemap.CaseMapping.Rfc1459, _server.ISupport.CaseMapping);
             var lower = _server.CaseFold(@"ÀTEST[]~\");
             Assert.AreEqual("Àtest{}^|", lower);
         }
diff --git a/IrcStates/Tests/Mode.cs b/IRCStates/Tests/Mode.cs
index 799afd6..90763fa 100644
--- a/IrcStates/Tests/Mode.cs
+++ b/IRCStates/Tests/Mode.cs
@@ -1,8 +1,8 @@
 using System.Collections.Generic;
-using IrcTokens;
+using IRCTokens;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcStates.Tests
+namespace IRCStates.Tests
 {
     [TestClass]
     public class Mode
diff --git a/IrcStates/Tests/Motd.cs b/IRCStates/Tests/Motd.cs
index 92929a5..2d75982 100644
--- a/IrcStates/Tests/Motd.cs
+++ b/IRCStates/Tests/Motd.cs
@@ -1,8 +1,8 @@
 using System.Collections.Generic;
-using IrcTokens;
+using IRCTokens;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcStates.Tests
+namespace IRCStates.Tests
 {
     [TestClass]
     public class Motd
diff --git a/IrcStates/Tests/Sasl.cs b/IRCStates/Tests/Sasl.cs
index f61e2e1..151ccdf 100644
--- a/IrcStates/Tests/Sasl.cs
+++ b/IRCStates/Tests/Sasl.cs
@@ -1,7 +1,7 @@
-using IrcTokens;
+using IRCTokens;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcStates.Tests
+namespace IRCStates.Tests
 {
     [TestClass]
     public class Sasl
diff --git a/IrcStates/Tests/User.cs b/IRCStates/Tests/User.cs
index 5857cfc..61d7157 100644
--- a/IrcStates/Tests/User.cs
+++ b/IRCStates/Tests/User.cs
@@ -1,7 +1,7 @@
-using IrcTokens;
+using IRCTokens;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcStates.Tests
+namespace IRCStates.Tests
 {
     [TestClass]
     public class User
diff --git a/IrcStates/Tests/Who.cs b/IRCStates/Tests/Who.cs
index 7e4e323..d091785 100644
--- a/IrcStates/Tests/Who.cs
+++ b/IRCStates/Tests/Who.cs
@@ -1,7 +1,7 @@
-using IrcTokens;
+using IRCTokens;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcStates.Tests
+namespace IRCStates.Tests
 {
     [TestClass]
     public class Who
diff --git a/IrcStates/User.cs b/IRCStates/User.cs
index 7df331b..5e18443 100644
--- a/IrcStates/User.cs
+++ b/IRCStates/User.cs
@@ -1,6 +1,6 @@
 using System.Collections.Generic;
 
-namespace IrcStates
+namespace IRCStates
 {
     public class User
     {
diff --git a/IrcTokens/Extensions.cs b/IRCTokens/Extensions.cs
index 4b23774..e346a43 100644
--- a/IrcTokens/Extensions.cs
+++ b/IRCTokens/Extensions.cs
@@ -2,7 +2,7 @@
 using System.Collections.Generic;
 using System.Linq;
 
-namespace IrcTokens
+namespace IRCTokens
 {
     public static class Extensions
     {
diff --git a/IrcTokens/Hostmask.cs b/IRCTokens/Hostmask.cs
index 3c0b7f2..2e1549a 100644
--- a/IrcTokens/Hostmask.cs
+++ b/IRCTokens/Hostmask.cs
@@ -1,6 +1,6 @@
 using System;
 
-namespace IrcTokens
+namespace IRCTokens
 {
     /// <summary>
     ///     Represents the three parts of a hostmask. Parse with the constructor.
diff --git a/IrcTokens/IrcTokens.csproj b/IRCTokens/IRCTokens.csproj
index 2fe9300..2fe9300 100644
--- a/IrcTokens/IrcTokens.csproj
+++ b/IRCTokens/IRCTokens.csproj
diff --git a/IrcTokens/Line.cs b/IRCTokens/Line.cs
index 36899bf..bf3cc91 100644
--- a/IrcTokens/Line.cs
+++ b/IRCTokens/Line.cs
@@ -4,7 +4,7 @@ using System.Globalization;
 using System.Linq;
 using System.Text;
 
-namespace IrcTokens
+namespace IRCTokens
 {
     /// <summary>
     ///     Tools to represent, parse, and format IRC lines
diff --git a/IrcTokens/README.md b/IRCTokens/README.md
index 3981654..d3769aa 100644
--- a/IrcTokens/README.md
+++ b/IRCTokens/README.md
@@ -1,4 +1,4 @@
-# irctokens
+# IRCTokens
 
 this is a c\# port of jesopo's [irctokens](
 https://github.com/jesopo/irctokens)
@@ -7,7 +7,7 @@ https://github.com/jesopo/irctokens)
 
 ### tokenization
 
-    using IrcTokens;
+    using IRCTokens;
     
     ...
 
diff --git a/IrcTokens/StatefulDecoder.cs b/IRCTokens/StatefulDecoder.cs
index 1f6636b..82630f6 100644
--- a/IrcTokens/StatefulDecoder.cs
+++ b/IRCTokens/StatefulDecoder.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 
-namespace IrcTokens
+namespace IRCTokens
 {
     public class StatefulDecoder
     {
diff --git a/IrcTokens/StatefulEncoder.cs b/IRCTokens/StatefulEncoder.cs
index bec4e42..46949dd 100644
--- a/IrcTokens/StatefulEncoder.cs
+++ b/IRCTokens/StatefulEncoder.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 
-namespace IrcTokens
+namespace IRCTokens
 {
     public class StatefulEncoder
     {
diff --git a/IrcTokens/Tests/Data/JoinModel.cs b/IRCTokens/Tests/Data/JoinModel.cs
index 2c08e58..e54f4cf 100644
--- a/IrcTokens/Tests/Data/JoinModel.cs
+++ b/IRCTokens/Tests/Data/JoinModel.cs
@@ -1,7 +1,7 @@
 using System.Collections.Generic;
 using YamlDotNet.Serialization;
 
-namespace IrcTokens.Tests.Data
+namespace IRCTokens.Tests.Data
 {
     public class JoinModel
     {
diff --git a/IrcTokens/Tests/Data/SplitModel.cs b/IRCTokens/Tests/Data/SplitModel.cs
index 65177a3..5386326 100644
--- a/IrcTokens/Tests/Data/SplitModel.cs
+++ b/IRCTokens/Tests/Data/SplitModel.cs
@@ -1,6 +1,6 @@
 using System.Collections.Generic;
 
-namespace IrcTokens.Tests.Data
+namespace IRCTokens.Tests.Data
 {
     public class SplitModel
     {
diff --git a/IrcTokens/Tests/Data/msg-join.yaml b/IRCTokens/Tests/Data/msg-join.yaml
index d1d7429..d1d7429 100644
--- a/IrcTokens/Tests/Data/msg-join.yaml
+++ b/IRCTokens/Tests/Data/msg-join.yaml
diff --git a/IrcTokens/Tests/Data/msg-split.yaml b/IRCTokens/Tests/Data/msg-split.yaml
index fa3f4aa..fa3f4aa 100644
--- a/IrcTokens/Tests/Data/msg-split.yaml
+++ b/IRCTokens/Tests/Data/msg-split.yaml
diff --git a/IrcTokens/Tests/Format.cs b/IRCTokens/Tests/Format.cs
index 69a5682..8319069 100644
--- a/IrcTokens/Tests/Format.cs
+++ b/IRCTokens/Tests/Format.cs
@@ -2,7 +2,7 @@
 using System.Collections.Generic;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcTokens.Tests
+namespace IRCTokens.Tests
 {
     [TestClass]
     public class Format
diff --git a/IrcTokens/Tests/Hostmask.cs b/IRCTokens/Tests/Hostmask.cs
index 6a5cf65..2446013 100644
--- a/IrcTokens/Tests/Hostmask.cs
+++ b/IRCTokens/Tests/Hostmask.cs
@@ -1,6 +1,6 @@
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcTokens.Tests
+namespace IRCTokens.Tests
 {
     [TestClass]
     public class Hostmask
@@ -8,7 +8,7 @@ namespace IrcTokens.Tests
         [TestMethod]
         public void TestHostmask()
         {
-            var hostmask = new IrcTokens.Hostmask("nick!user@host");
+            var hostmask = new IRCTokens.Hostmask("nick!user@host");
             Assert.AreEqual("nick", hostmask.NickName);
             Assert.AreEqual("user", hostmask.UserName);
             Assert.AreEqual("host", hostmask.HostName);
@@ -17,7 +17,7 @@ namespace IrcTokens.Tests
         [TestMethod]
         public void TestNoHostName()
         {
-            var hostmask = new IrcTokens.Hostmask("nick!user");
+            var hostmask = new IRCTokens.Hostmask("nick!user");
             Assert.AreEqual("nick", hostmask.NickName);
             Assert.AreEqual("user", hostmask.UserName);
             Assert.IsNull(hostmask.HostName);
@@ -26,7 +26,7 @@ namespace IrcTokens.Tests
         [TestMethod]
         public void TestNoUserName()
         {
-            var hostmask = new IrcTokens.Hostmask("nick@host");
+            var hostmask = new IRCTokens.Hostmask("nick@host");
             Assert.AreEqual("nick", hostmask.NickName);
             Assert.IsNull(hostmask.UserName);
             Assert.AreEqual("host", hostmask.HostName);
@@ -35,7 +35,7 @@ namespace IrcTokens.Tests
         [TestMethod]
         public void TestOnlyNickName()
         {
-            var hostmask = new IrcTokens.Hostmask("nick");
+            var hostmask = new IRCTokens.Hostmask("nick");
             Assert.AreEqual("nick", hostmask.NickName);
             Assert.IsNull(hostmask.UserName);
             Assert.IsNull(hostmask.HostName);
@@ -45,7 +45,7 @@ namespace IrcTokens.Tests
         public void TestHostmaskFromLine()
         {
             var line     = new Line(":nick!user@host PRIVMSG #channel hello");
-            var hostmask = new IrcTokens.Hostmask("nick!user@host");
+            var hostmask = new IRCTokens.Hostmask("nick!user@host");
             Assert.AreEqual(hostmask.ToString(), line.Hostmask.ToString());
             Assert.AreEqual("nick", line.Hostmask.NickName);
             Assert.AreEqual("user", line.Hostmask.UserName);
diff --git a/IrcTokens/Tests/Parser.cs b/IRCTokens/Tests/Parser.cs
index ed4e406..bd0a92d 100644
--- a/IrcTokens/Tests/Parser.cs
+++ b/IRCTokens/Tests/Parser.cs
@@ -1,12 +1,12 @@
 using System.Collections.Generic;
 using System.Globalization;
 using System.IO;
-using IrcTokens.Tests.Data;
+using IRCTokens.Tests.Data;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using YamlDotNet.Serialization;
 using YamlDotNet.Serialization.NamingConventions;
 
-namespace IrcTokens.Tests
+namespace IRCTokens.Tests
 {
     [TestClass]
     public class Parser
diff --git a/IrcTokens/Tests/StatefulDecoder.cs b/IRCTokens/Tests/StatefulDecoder.cs
index 9d2b8b7..d37310f 100644
--- a/IrcTokens/Tests/StatefulDecoder.cs
+++ b/IRCTokens/Tests/StatefulDecoder.cs
@@ -2,17 +2,17 @@
 using System.Text;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcTokens.Tests
+namespace IRCTokens.Tests
 {
     [TestClass]
     public class StatefulDecoder
     {
-        private IrcTokens.StatefulDecoder _decoder;
+        private IRCTokens.StatefulDecoder _decoder;
 
         [TestInitialize]
         public void TestInitialize()
         {
-            _decoder = new IrcTokens.StatefulDecoder();
+            _decoder = new IRCTokens.StatefulDecoder();
         }
 
         [TestMethod]
@@ -44,7 +44,7 @@ namespace IrcTokens.Tests
         public void TestEncoding()
         {
             var iso8859 = Encoding.GetEncoding("iso-8859-1");
-            _decoder = new IrcTokens.StatefulDecoder {Encoding = iso8859};
+            _decoder = new IRCTokens.StatefulDecoder {Encoding = iso8859};
             var bytes = iso8859.GetBytes("PRIVMSG #channel :hello Ç\r\n");
             var lines = _decoder.Push(bytes, bytes.Length);
             var line  = new Line("PRIVMSG #channel :hello Ç");
@@ -55,7 +55,7 @@ namespace IrcTokens.Tests
         public void TestEncodingFallback()
         {
             var latin1 = Encoding.GetEncoding("iso-8859-1");
-            _decoder = new IrcTokens.StatefulDecoder {Encoding = null, Fallback = latin1};
+            _decoder = new IRCTokens.StatefulDecoder {Encoding = null, Fallback = latin1};
             var bytes = latin1.GetBytes("PRIVMSG #channel hélló\r\n");
             var lines = _decoder.Push(bytes, bytes.Length);
             Assert.AreEqual(1, lines.Count);
diff --git a/IrcTokens/Tests/StatefulEncoder.cs b/IRCTokens/Tests/StatefulEncoder.cs
index f2cd6c4..5ced4d2 100644
--- a/IrcTokens/Tests/StatefulEncoder.cs
+++ b/IRCTokens/Tests/StatefulEncoder.cs
@@ -1,17 +1,17 @@
 using System.Text;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcTokens.Tests
+namespace IRCTokens.Tests
 {
     [TestClass]
     public class StatefulEncoder
     {
-        private IrcTokens.StatefulEncoder _encoder;
+        private IRCTokens.StatefulEncoder _encoder;
 
         [TestInitialize]
         public void TestInitialize()
         {
-            _encoder = new IrcTokens.StatefulEncoder();
+            _encoder = new IRCTokens.StatefulEncoder();
         }
 
         [TestMethod]
@@ -76,7 +76,7 @@ namespace IrcTokens.Tests
         public void TestEncoding()
         {
             var iso8859 = Encoding.GetEncoding("iso-8859-1");
-            _encoder = new IrcTokens.StatefulEncoder {Encoding = iso8859};
+            _encoder = new IRCTokens.StatefulEncoder {Encoding = iso8859};
             _encoder.Push(new Line("PRIVMSG #channel :hello Ç"));
             CollectionAssert.AreEqual(iso8859.GetBytes("PRIVMSG #channel :hello Ç\r\n"), _encoder.PendingBytes);
         }
diff --git a/IrcTokens/Tests/Tokenization.cs b/IRCTokens/Tests/Tokenization.cs
index 7e2139d..03959de 100644
--- a/IrcTokens/Tests/Tokenization.cs
+++ b/IRCTokens/Tests/Tokenization.cs
@@ -1,7 +1,7 @@
 using System.Collections.Generic;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 
-namespace IrcTokens.Tests
+namespace IRCTokens.Tests
 {
     [TestClass]
     public class Tokenization
diff --git a/IrcStates/Extensions.cs b/IrcStates/Extensions.cs
deleted file mode 100644
index 181ac80..0000000
--- a/IrcStates/Extensions.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Linq.Expressions;
-using System.Reflection;
-
-namespace IrcStates
-{
-    public static class Extensions
-    {
-        public static Delegate CreateDelegate(this MethodInfo methodInfo, object target)
-        {
-            if (methodInfo == null) return null;
-
-            var types = methodInfo.GetParameters().Select(p => p.ParameterType);
-
-            Func<Type[], Type> getType;
-            if (methodInfo.ReturnType == typeof(void))
-            {
-                getType = Expression.GetActionType;
-            }
-            else
-            {
-                getType = Expression.GetFuncType;
-                types   = types.Concat(new[] {methodInfo.ReturnType});
-            }
-
-            return methodInfo.IsStatic
-                ? Delegate.CreateDelegate(getType(types.ToArray()), methodInfo)
-                : Delegate.CreateDelegate(getType(types.ToArray()), target, methodInfo);
-        }
-
-        public static void UpdateWith<TKey, TValue>(this Dictionary<TKey, TValue> dict, Dictionary<TKey, TValue> other)
-        {
-            if (dict == null || other == null || !other.Any()) return;
-
-            foreach (var (key, value) in other) dict[key] = value;
-        }
-    }
-}
diff --git a/README.md b/README.md
index 1796da2..d012c78 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# IrcSharp
+# IRCSharp
 
 [![Build Status](https://drone.tildegit.org/api/badges/ben/ircsharp/status.svg)](https://drone.tildegit.org/ben/ircsharp)