| 12345678910111213141516 |
- module.exports = function SwearWords(mod) {
- const unfilter = (e) => {
- e.message = e.message.replace(/<FONT>(.*?)<\/FONT>/g, "<FONT></FONT>$1");
- return true;
- };
- for (const data of [
- ["S_CHAT", 4],
- ["S_WHISPER", 4],
- ["S_PRIVATE_CHAT", 1],
- ["C_CHAT", 1],
- ["C_WHISPER", 2],
- ]) {
- mod.hook(...data, { order: 100 }, unfilter);
- }
- };
|