Skip to content

Commit

Permalink
Dont filter System
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyTech6 committed Sep 10, 2024
1 parent 4d1335b commit 241c5e7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
`0.1.3`
- Don't filter System messages

`0.1.2`
- Added Literal Matching
- Added Wildcard Matching
Expand Down
2 changes: 2 additions & 0 deletions Hooks/ChatHook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public static bool OnUpdate(ChatMessageSystem __instance)

var messageText = chatEventData.MessageText.ToString();

if (chatEventData.MessageType == ChatMessageType.System) continue;

messageText = messageText.Filter();

chatEventData.MessageText = messageText;
Expand Down
1 change: 1 addition & 0 deletions Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public override void Load()

Bloodstone.Hooks.Chat.OnChatMessage += ((x) =>
{
if (x.Type == ProjectM.Network.ChatMessageType.System) return;
if (!Settings.GetActiveOption(Settings.Options.Enable)) return;
if (!Settings.GetActiveOption(Settings.Options.FullRemove)) return;
if (x.Message.ContainsFiltered())
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ FilterURLs = true

Want to support my V Rising Mod development?

Join [Vexor World]() where I create exclusive content mods

Donations Accepted with [Ko-Fi](https://ko-fi.com/skytech6)

Or buy/play my games!
Expand Down

0 comments on commit 241c5e7

Please sign in to comment.