aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-23 12:48:02 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-23 12:48:02 +0200
commit5eaf1240df7e0674a28afcd04694202c029d7665 (patch)
treea08976bb10a65e0dc2972b5d704c2a32968cb645 /src
parentacc4455297c7ae5a920264f4e01088e877da31a4 (diff)
downloadskyhanni-5eaf1240df7e0674a28afcd04694202c029d7665.tar.gz
skyhanni-5eaf1240df7e0674a28afcd04694202c029d7665.tar.bz2
skyhanni-5eaf1240df7e0674a28afcd04694202c029d7665.zip
Removed Friend Join Left message hider
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/ChatConfig.java6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt11
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