diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-23 12:48:02 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-23 12:48:02 +0200 |
commit | 5eaf1240df7e0674a28afcd04694202c029d7665 (patch) | |
tree | a08976bb10a65e0dc2972b5d704c2a32968cb645 /src/main/java/at/hannibal2/skyhanni | |
parent | acc4455297c7ae5a920264f4e01088e877da31a4 (diff) | |
download | skyhanni-5eaf1240df7e0674a28afcd04694202c029d7665.tar.gz skyhanni-5eaf1240df7e0674a28afcd04694202c029d7665.tar.bz2 skyhanni-5eaf1240df7e0674a28afcd04694202c029d7665.zip |
Removed Friend Join Left message hider
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/ChatConfig.java | 6 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt | 11 |
2 files changed, 0 insertions, 17 deletions
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 @@ -48,12 +48,6 @@ public class ChatConfig { 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 @ConfigAccordionId(id = 0) 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 |