From 5c016b2a7cf85d57698ec2e0ed73bf34cce50946 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Wed, 7 Sep 2022 09:37:18 +0200 Subject: code cleanup --- .../java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') 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 62d842cba..3d9835910 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt @@ -66,9 +66,9 @@ class ChatFilter { message.matchRegex("§aFriend > §r(.*) §r§e(joined|left).") -> { true } + else -> false } - } private fun uselessNotification(message: String): Boolean { @@ -225,7 +225,9 @@ class ChatFilter { //Bank "§8Depositing coins...", - "§8Withdrawing coins..." -> true + "§8Withdrawing coins...", + -> true + else -> false } @@ -296,7 +298,9 @@ class ChatFilter { "", "§f", - "§c" -> true + "§c", + -> true + else -> false } } -- cgit