about summary refs log tree commit diff
path: root/IRCStates/ISupportChanModes.cs
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2020-05-16 22:08:40 -0400
committerBen Harris <ben@tilde.team>2020-05-16 22:08:40 -0400
commita1e1922e62419de75d2909dfae1ee7caa9ed487f (patch)
tree9198d3edbe1363df38fc03e30e4d247be9dd8e60 /IRCStates/ISupportChanModes.cs
parenta03daca3d4f52af4fecbb263526a0d61d17776fd (diff)
Add xmldocs, and handle null bytes
Diffstat (limited to 'IRCStates/ISupportChanModes.cs')
-rw-r--r--IRCStates/ISupportChanModes.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/IRCStates/ISupportChanModes.cs b/IRCStates/ISupportChanModes.cs
index e63c15f..5a175da 100644
--- a/IRCStates/ISupportChanModes.cs
+++ b/IRCStates/ISupportChanModes.cs
@@ -6,6 +6,10 @@ namespace IRCStates
 {
     public class ISupportChanModes
     {
+        /// <summary>
+        /// Split the chanmodes and add to our known <see cref="ListModes"/>
+        /// </summary>
+        /// <param name="splitVal"></param>
         public ISupportChanModes(string splitVal)
         {
             if (splitVal == null) return;
@@ -25,9 +29,9 @@ namespace IRCStates
             SettingDModes.AddRange(split[3].Select(c => c.ToString(CultureInfo.InvariantCulture)));
         }
 
-        public List<string> ListModes { get; set; }
-        public List<string> SettingBModes { get; set; }
-        public List<string> SettingCModes { get; set; }
-        public List<string> SettingDModes { get; set; }
+        public List<string> ListModes { get; }
+        public List<string> SettingBModes { get; }
+        public List<string> SettingCModes { get; }
+        public List<string> SettingDModes { get; }
     }
 }