diff --git a/HellionChat/Code/ChatCode.cs b/HellionChat/Code/ChatCode.cs index a6d14e9..32b717a 100755 --- a/HellionChat/Code/ChatCode.cs +++ b/HellionChat/Code/ChatCode.cs @@ -91,13 +91,10 @@ public class ChatCode public override bool Equals(object? obj) { - if (obj == null) - return false; - if (obj is not ChatCode code) return false; - return GetHashCode() == code.GetHashCode(); + return Type == code.Type && Source == code.Source && Target == code.Target; } public override int GetHashCode()