Commit graph

15 commits

Author SHA1 Message Date
Anand S
66c61c8e6c
priv check before unmuting
Only unmutes a player if their shout priv hasn't been granted already
2018-04-20 12:34:31 +05:30
Anand S
53312940c0
Reverted all changes
Will make dedicated branch for each commit
2018-04-20 12:17:56 +05:30
Anand S
e9df5c87c1
Highlighted mute and un-mute messages 2018-04-20 11:48:41 +05:30
Anand S
34f0be2f9f Added priv check before un-muting player
Unmutes player _only_ if the player is still muted
2018-04-19 20:45:59 +05:30
Anand S
685c94bd01 Removes *all* white-spaces from message
this to ensure players can't get around this mod by adding spaces between words (e.g. "f uck")
2018-04-19 20:01:55 +05:30
rubenwardy
99100857af Fix conflict with chat commands 2018-02-05 23:03:19 -08:00
rubenwardy
9422add415 Add support for the email mod 2018-02-05 23:03:19 -08:00
rubenwardy
a240c39a64 Fix loss of shout privilege if server shuts down during mute 2018-02-05 23:03:19 -08:00
rubenwardy
dae7d9939e Add on_violation callback 2018-02-05 23:03:19 -08:00
rubenwardy
1c7f9bf23a Add warning formspec on first violation 2018-02-05 23:03:19 -08:00
rubenwardy
1af799f905 Add filter.mute 2018-02-05 23:03:19 -08:00
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
Auke Kok
73b95e514d Omit not needed priv check. 2017-11-05 12:00:08 -08:00
Auke Kok
9d132c8e1b Don't look inside words. 2017-11-05 11:57:53 -08:00
Auke Kok
a2fe89117e Initial commit. 2017-11-04 21:37:49 -07:00