diff options
author | Ben Harris <ben@tilde.team> | 2020-05-13 14:21:49 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2020-05-13 14:30:12 -0400 |
commit | b93174070a0964f254781686ed2390855127ad7a (patch) | |
tree | f75f8bbb3949be13ac165b670bbb9ef44a7a2909 /IrcStates/ISupportPrefix.cs | |
parent | ba63e42be47fe1021e727347477a7df5779d23f7 (diff) |
Start adding some line handlers
Diffstat (limited to 'IrcStates/ISupportPrefix.cs')
-rw-r--r-- | IrcStates/ISupportPrefix.cs | 5 |
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]}; |