index.js 346 B

12345678910111213141516
  1. module.exports = function SwearWords(mod) {
  2. const unfilter = (e) => {
  3. e.message = e.message.replace(/<FONT>(.*?)<\/FONT>/g, "<FONT></FONT>$1");
  4. return true;
  5. };
  6. for (const data of [
  7. ["S_CHAT", 3],
  8. ["S_WHISPER", 3],
  9. ["S_PRIVATE_CHAT", 1],
  10. ["C_CHAT", 1],
  11. ["C_WHISPER", 1],
  12. ]) {
  13. mod.hook(...data, { order: 100 }, unfilter);
  14. }
  15. };