summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-01-25 16:21:54 +0100
committerLinnea Gräf <nea@nea.moe>2025-01-25 16:21:54 +0100
commitad03f074c603f38f9319411d785e598e8a92e42c (patch)
tree270ed24e05e8183e38f92cf4200b690f90e02e76
parentef50dc42d7b2ca46bac73723728188761acfd8dc (diff)
downloadultra-notifier-master.tar.gz
ultra-notifier-master.tar.bz2
ultra-notifier-master.zip
-rw-r--r--src/main/kotlin/datamodel/ChatType.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/datamodel/ChatType.kt b/src/main/kotlin/datamodel/ChatType.kt
index 31ec2e7..b157de9 100644
--- a/src/main/kotlin/datamodel/ChatType.kt
+++ b/src/main/kotlin/datamodel/ChatType.kt
@@ -135,7 +135,8 @@ object ChatCategoryArbiter : SubscriptionTarget {
@UltraSubscribe
fun onVisibleChatMessage(event: VisibleChatMessageAddedEvent) {
val cl = event.chatLine.category
- if (selectedCategory.id == specialAll)return
+ if (selectedCategory.id == specialAll)
+ return
if (selectedCategory !in cl.categories)
event.cancel()
}