Go to file
Andrew Ward fea7973687 Add kick above certain number of violations (#2)
Keep track of muted players, prevents players without shout being shown wrong message
Add kick after 3 mutes in 5 minutes (ish)
Split chat message callback in to functions, this would allow other mods to use the functions to check for spam and write their own violation mechanisms (although I'd like to add a callback)
Add word count to chat command
Add support for words.txt file in mod, to avoid having to manually enter loads of items. In future support for reading from world files using /filter import words.txt could be added.
Make filter case insensitive
Add gitignore
2018-02-02 09:07:41 -08:00
.gitignore Add kick above certain number of violations (#2) 2018-02-02 09:07:41 -08:00
.luacheckrc Add .luacheckrc 2017-11-05 12:00:27 -08:00
LICENSE Create LICENSE (#1) 2017-11-04 21:44:22 -07:00
depends.txt Initial commit. 2017-11-04 21:37:49 -07:00
description.txt Initial commit. 2017-11-04 21:37:49 -07:00
init.lua Add kick above certain number of violations (#2) 2018-02-02 09:07:41 -08:00
mod.conf Initial commit. 2017-11-04 21:37:49 -07:00
readme.md Add readme.md 2017-11-04 21:42:25 -07:00

readme.md

filter mod

This mod adds a simple chat filter. There is no default word list, and adding words to the filter list is done through the /filter chat command. You need the server priv to use the chat command.

The /filter chat command can add, remove or list words. The words are stored in mod_storage, which means that this mod requires 0.4.16 or above to function.

If a player speaks a word that is listed in the filter list, they are muted for 1 minute. After that, their shout privilege is restored. If they leave, their shout privilege is still restored, but only after the time expires, not before.

Bugs

  • the shout priv is permanently lost if the server shuts down while a player is muted.