diff options
author | Ben Harris <ben@tilde.team> | 2020-05-16 22:08:40 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2020-05-16 22:08:40 -0400 |
commit | a1e1922e62419de75d2909dfae1ee7caa9ed487f (patch) | |
tree | 9198d3edbe1363df38fc03e30e4d247be9dd8e60 /IRCStates/ChannelUser.cs | |
parent | a03daca3d4f52af4fecbb263526a0d61d17776fd (diff) |
Add xmldocs, and handle null bytes
Diffstat (limited to 'IRCStates/ChannelUser.cs')
-rw-r--r-- | IRCStates/ChannelUser.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/IRCStates/ChannelUser.cs b/IRCStates/ChannelUser.cs index 8c2298b..bc5e99b 100644 --- a/IRCStates/ChannelUser.cs +++ b/IRCStates/ChannelUser.cs @@ -9,9 +9,9 @@ namespace IRCStates Modes = new List<string>(); } - public List<string> Modes { get; set; } + public List<string> Modes { get; } - protected bool Equals(ChannelUser other) + private bool Equals(ChannelUser other) { return other != null && Equals(Modes, other.Modes); } @@ -20,8 +20,7 @@ namespace IRCStates { if (ReferenceEquals(null, obj)) return false; if (ReferenceEquals(this, obj)) return true; - if (obj.GetType() != GetType()) return false; - return Equals((ChannelUser) obj); + return obj.GetType() == GetType() && Equals((ChannelUser) obj); } public override int GetHashCode() |