diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-09-07 09:37:18 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-09-07 09:37:18 +0200 |
commit | 5c016b2a7cf85d57698ec2e0ed73bf34cce50946 (patch) | |
tree | 88678c660ff33e91954674c378d7305403189f1a /src/main/java/at | |
parent | afc0c5bb720b57ea8f278cf2a432c37137821d00 (diff) | |
download | skyhanni-5c016b2a7cf85d57698ec2e0ed73bf34cce50946.tar.gz skyhanni-5c016b2a7cf85d57698ec2e0ed73bf34cce50946.tar.bz2 skyhanni-5c016b2a7cf85d57698ec2e0ed73bf34cce50946.zip |
code cleanup
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt | 10 |
1 files changed, 7 insertions, 3 deletions
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 } } |