chat filter: refresh chat on config change, startup, and shutdown
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user