about summary refs log tree commit diff
path: root/IrcStates/ISupportPrefix.cs
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2020-05-13 14:21:49 -0400
committerBen Harris <ben@tilde.team>2020-05-13 14:30:12 -0400
commitb93174070a0964f254781686ed2390855127ad7a (patch)
treef75f8bbb3949be13ac165b670bbb9ef44a7a2909 /IrcStates/ISupportPrefix.cs
parentba63e42be47fe1021e727347477a7df5779d23f7 (diff)
Start adding some line handlers
Diffstat (limited to 'IrcStates/ISupportPrefix.cs')
-rw-r--r--IrcStates/ISupportPrefix.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/IrcStates/ISupportPrefix.cs b/IrcStates/ISupportPrefix.cs
index 94668e3..b319e04 100644
--- a/IrcStates/ISupportPrefix.cs
+++ b/IrcStates/ISupportPrefix.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
 
 namespace IrcStates
 {
@@ -6,6 +7,8 @@ namespace IrcStates
     {
         public ISupportPrefix(string splitVal)
         {
+            if (splitVal == null) throw new ArgumentNullException(nameof(splitVal));
+
             var split = splitVal.Substring(1).Split(')', 2);
             Modes    = new List<string> {split[0]};
             Prefixes = new List<string> {split[1]};