diff --git a/NoSoliciting/Filter.cs b/NoSoliciting/Filter.cs index c5f44f0..a6fd0df 100644 --- a/NoSoliciting/Filter.cs +++ b/NoSoliciting/Filter.cs @@ -134,6 +134,7 @@ namespace NoSoliciting { ChatTypeExt.FromDalamud(type), sender, message, + true, reason )); @@ -171,6 +172,7 @@ namespace NoSoliciting { ChatTypeExt.FromDalamud(type), sender, message, + false, reason )); @@ -234,6 +236,7 @@ namespace NoSoliciting { ChatType.None, listing.Name(), listing.Description(), + true, reason )); @@ -313,6 +316,7 @@ namespace NoSoliciting { ChatType.None, listing.Name(), listing.Description(), + false, reason )); diff --git a/NoSoliciting/Message.cs b/NoSoliciting/Message.cs index 37510e3..db25814 100644 --- a/NoSoliciting/Message.cs +++ b/NoSoliciting/Message.cs @@ -17,23 +17,26 @@ namespace NoSoliciting { public ChatType ChatType { get; } public SeString Sender { get; } public SeString Content { get; } + public bool Ml { get; } public string? FilterReason { get; } - public Message(uint defsVersion, ChatType type, SeString sender, SeString content, string? reason) { + public Message(uint defsVersion, ChatType type, SeString sender, SeString content, bool ml, string? reason) { this.Id = Guid.NewGuid(); this.DefinitionsVersion = defsVersion; this.Timestamp = DateTime.Now; this.ChatType = type; this.Sender = sender; this.Content = content; + this.Ml = ml; this.FilterReason = reason; } - public Message(uint defsVersion, ChatType type, string sender, string content, string? reason) : this( + public Message(uint defsVersion, ChatType type, string sender, string content, bool ml, string? reason) : this( defsVersion, type, new SeString(new Payload[] {new TextPayload(sender)}), new SeString(new Payload[] {new TextPayload(content)}), + ml, reason ) { }