chat filter: refresh chat on config change, startup, and shutdown

This commit is contained in:
caleyz
2019-07-08 15:56:07 +01:00
committed by Adam
parent 3b452981b4
commit 3f4dba6f16

View File

@@ -81,12 +81,14 @@ public class ChatFilterPlugin extends Plugin
protected void startUp() throws Exception protected void startUp() throws Exception
{ {
updateFilteredPatterns(); updateFilteredPatterns();
client.refreshChat();
} }
@Override @Override
protected void shutDown() throws Exception protected void shutDown() throws Exception
{ {
filteredPatterns.clear(); filteredPatterns.clear();
client.refreshChat();
} }
@Subscribe @Subscribe
@@ -235,5 +237,8 @@ public class ChatFilterPlugin extends Plugin
} }
updateFilteredPatterns(); updateFilteredPatterns();
//Refresh chat after config change to reflect current rules
client.refreshChat();
} }
} }