diff options
author | saga <45262877+saga-00@users.noreply.github.com> | 2024-08-26 06:08:12 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-26 11:08:12 +0200 |
commit | 35b1a6a1b83a1504605bd5b5d3e4f6fd6e545c8e (patch) | |
tree | 911b1da92dfdd7831b616c9b8fa8e9d8710b8fad /src/main/java/at/hannibal2/skyhanni/features/chat | |
parent | d13954de4de5d9a04380bb4105c13d7ae564255e (diff) | |
download | skyhanni-35b1a6a1b83a1504605bd5b5d3e4f6fd6e545c8e.tar.gz skyhanni-35b1a6a1b83a1504605bd5b5d3e4f6fd6e545c8e.tar.bz2 skyhanni-35b1a6a1b83a1504605bd5b5d3e4f6fd6e545c8e.zip |
Feature: "Not any pests" chat filter and "No pests!" title (#1957)
Co-authored-by: Cal <cwolfson58@gmail.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/chat')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt | 2 |
1 files changed, 2 insertions, 0 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 303f8de37..ada41bab4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt @@ -7,6 +7,7 @@ import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.features.chat.PowderMiningChatFilter.genericMiningRewardMessage import at.hannibal2.skyhanni.features.dungeon.DungeonAPI import at.hannibal2.skyhanni.features.garden.GardenAPI +import at.hannibal2.skyhanni.features.garden.pests.PestFinder import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RegexUtils.groupOrNull @@ -496,6 +497,7 @@ object ChatFilter { dungeonConfig.soloClass && DungeonAPI.inDungeon() && message.isPresent("solo_class") -> "solo_class" dungeonConfig.soloStats && DungeonAPI.inDungeon() && message.isPresent("solo_stats") -> "solo_stats" dungeonConfig.fairy && DungeonAPI.inDungeon() && message.isPresent("fairy") -> "fairy" + config.gardenNoPest && GardenAPI.inGarden() && PestFinder.noPestsChatPattern.matches(message) -> "garden_pest" else -> null } |