diff options
Diffstat (limited to 'IRCStates/ISupportPrefix.cs')
-rw-r--r-- | IRCStates/ISupportPrefix.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/IRCStates/ISupportPrefix.cs b/IRCStates/ISupportPrefix.cs index 35c5344..146bdcc 100644 --- a/IRCStates/ISupportPrefix.cs +++ b/IRCStates/ISupportPrefix.cs @@ -7,6 +7,11 @@ namespace IRCStates { public class ISupportPrefix { + /// <summary> + /// Split the prefix value and add them to our known <see cref="Modes"/> and <see cref="Prefixes"/> + /// </summary> + /// <param name="splitVal"></param> + /// <exception cref="ArgumentNullException"></exception> public ISupportPrefix(string splitVal) { if (splitVal == null) throw new ArgumentNullException(nameof(splitVal)); @@ -18,8 +23,8 @@ namespace IRCStates Prefixes.AddRange(split[1].Select(c => c.ToString(CultureInfo.InvariantCulture))); } - public List<string> Modes { get; set; } - public List<string> Prefixes { get; set; } + public List<string> Modes { get; } + public List<string> Prefixes { get; } public string FromMode(char mode) { |