about summary refs log tree commit diff
path: root/LibMatrix.EventTypes
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-22 17:20:13 +0200
committerRory& <root@rory.gay>2025-05-22 17:20:13 +0200
commitdffe8dbb3f477a274df43d9b56e78021d92f3d6d (patch)
tree824e4501899e8f61da3c18e143614ccf039723ef /LibMatrix.EventTypes
parentLogging cleanup (diff)
downloadLibMatrix-dffe8dbb3f477a274df43d9b56e78021d92f3d6d.tar.xz
Clean up some debug code in policy events
Diffstat (limited to 'LibMatrix.EventTypes')
-rw-r--r--LibMatrix.EventTypes/Spec/State/Policy/PolicyRuleStateEventContent.cs13
1 files changed, 1 insertions, 12 deletions
diff --git a/LibMatrix.EventTypes/Spec/State/Policy/PolicyRuleStateEventContent.cs b/LibMatrix.EventTypes/Spec/State/Policy/PolicyRuleStateEventContent.cs

index 949e733..a68de8d 100644 --- a/LibMatrix.EventTypes/Spec/State/Policy/PolicyRuleStateEventContent.cs +++ b/LibMatrix.EventTypes/Spec/State/Policy/PolicyRuleStateEventContent.cs
@@ -35,7 +35,6 @@ public class RoomPolicyRuleEventContent : PolicyRuleEventContent { [DebuggerDisplay("""{GetType().Name.Replace("PolicyRuleEventContent", ""),nq} policy matching {Entity}, Reason: {Reason}""")] public abstract class PolicyRuleEventContent : EventContent { // public PolicyRuleEventContent() => Console.WriteLine($"init policy {GetType().Name}"); - private string? _reason; /// <summary> /// Entity this ban applies to, can use * and ? as globs. @@ -52,17 +51,7 @@ public abstract class PolicyRuleEventContent : EventContent { /// </summary> [JsonPropertyName("reason")] [FriendlyName(Name = "Reason")] - public virtual string? Reason { - get => - // Console.WriteLine($"Read policy reason: {_reason}"); - _reason; - set => - // Console.WriteLine($"Set policy reason: {value}"); - // if(init) - // Console.WriteLine(string.Join('\n', Environment.StackTrace.Split('\n')[..5])); - // init = true; - _reason = value; - } + public string? Reason { get; set; } /// <summary> /// Suggested action to take