From 5eaf1240df7e0674a28afcd04694202c029d7665 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 23 Aug 2023 12:48:02 +0200 Subject: Removed Friend Join Left message hider --- .../at/hannibal2/skyhanni/config/features/ChatConfig.java | 6 ------ .../java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt | 11 ----------- 2 files changed, 17 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/ChatConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/ChatConfig.java index 352d01589..30bba65bd 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/ChatConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/ChatConfig.java @@ -47,12 +47,6 @@ public class ChatConfig { @ConfigAccordionId(id = 0) public boolean guildExp = true; - @Expose - @ConfigOption(name = "Friend Join Left", desc = "Hide friend join/left messages.") - @ConfigEditorBoolean - @ConfigAccordionId(id = 0) - public boolean friendJoinLeft = false; - @Expose @ConfigOption(name = "Winter Gifts", desc = "Hide useless winter gift messages.") @ConfigEditorBoolean diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt index a8733abff..e5ba401eb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt @@ -25,7 +25,6 @@ class ChatFilter { warping(message) && config.warping -> "warping" welcome(message) && config.welcome -> "welcome" isGuildExp(message) && config.guildExp -> "guild_exp" - friendJoin(message) && config.friendJoinLeft -> "friend_join" killCombo(message) && config.killCombo -> "kill_combo" profileJoin(message) && config.profileJoin -> "profile_join" @@ -65,16 +64,6 @@ class ChatFilter { return false } - private fun friendJoin(message: String): Boolean { - return when { - message.matchRegex("§aFriend > §r(.*) §r§e(joined|left).") -> { - true - } - - else -> false - } - } - private fun uselessNotification(message: String): Boolean { if (message.matchRegex("§aYou tipped (\\d+) (player|players)!")) return true -- cgit