about summary refs log tree commit diff
path: root/IrcStates/ISupportPrefix.cs
diff options
context:
space:
mode:
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]};