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
{
updateFilteredPatterns();
client.refreshChat();
}
@Override
protected void shutDown() throws Exception
{
filteredPatterns.clear();
client.refreshChat();
}
@Subscribe
@@ -235,5 +237,8 @@ public class ChatFilterPlugin extends Plugin
}
updateFilteredPatterns();
//Refresh chat after config change to reflect current rules
client.refreshChat();
}
}