summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()
}