From 504f2aaf5c743be9a91615cb2fce9f0a45d11962 Mon Sep 17 00:00:00 2001 From: Sin_ender <65603613+sinender@users.noreply.github.com> Date: Fri, 30 Dec 2022 13:54:39 -0500 Subject: Allow for custom messages (#14) * Allowing custom messages to be used. * Gave it the ability to search through custom messages * Updated to not store in config and remove from constructor. * Whoops forgot to remove it from the config * Added @Transient --- src/main/kotlin/cc/woverflow/chatting/chat/ChatTab.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/kotlin/cc/woverflow/chatting/chat') diff --git a/src/main/kotlin/cc/woverflow/chatting/chat/ChatTab.kt b/src/main/kotlin/cc/woverflow/chatting/chat/ChatTab.kt index 50de1f4..75b5d69 100644 --- a/src/main/kotlin/cc/woverflow/chatting/chat/ChatTab.kt +++ b/src/main/kotlin/cc/woverflow/chatting/chat/ChatTab.kt @@ -30,6 +30,7 @@ data class ChatTab( lateinit var button: TabButton lateinit var compiledRegex: ChatRegexes lateinit var compiledIgnoreRegex: ChatRegexes + @Transient var messages: List = ArrayList() //Ugly hack to make GSON not make button / regex null fun initialize() { -- cgit