diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-08-09 09:21:24 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-08-09 09:21:24 +0200 |
commit | 9ef75ce1c01beefbcd075d9c8ebc2b50ddaf727b (patch) | |
tree | 791f7e6e320e0104148e16384f5816af8181313d /src/main | |
parent | df3b54e906164c349814e4e69ad97c801ef41061 (diff) | |
download | skyhanni-9ef75ce1c01beefbcd075d9c8ebc2b50ddaf727b.tar.gz skyhanni-9ef75ce1c01beefbcd075d9c8ebc2b50ddaf727b.tar.bz2 skyhanni-9ef75ce1c01beefbcd075d9c8ebc2b50ddaf727b.zip |
fix event filter hiding all empty lines
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt | 5 |
1 files changed, 4 insertions, 1 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 e4e411d4c..303f8de37 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt @@ -483,7 +483,10 @@ object ChatFilter { config.others && isOthers(message) -> othersMsg config.winterGift && message.isPresent("winter_gift") -> "winter_gift" - config.eventLevelUp && (message.isPresent("event") || StringUtils.isEmpty(message)) -> "event" + + // TODO need proper solution to hide empty messages in event text + config.eventLevelUp && (message.isPresent("event")) -> "event" + config.fireSale && (fireSalePattern.matches(message) || message.isPresent("fire_sale")) -> "fire_sale" config.factoryUpgrade && message.isPresent("factory_upgrade") -> "factory_upgrade" config.sacrifice && message.isPresent("sacrifice") -> "sacrifice" |