mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 08:21:47 +00:00
fix spam filtering example script filter.rhai.example
This commit is contained in:
parent
e574bbb484
commit
0c8755549b
@ -45,7 +45,6 @@
|
||||
// global setting for SpamSafe is off)
|
||||
|
||||
fn filter() {
|
||||
|
||||
// Show spam on global
|
||||
// (global events are ephemeral; these won't grow the database)
|
||||
if caller=="Global" {
|
||||
@ -80,7 +79,7 @@ fn filter() {
|
||||
if content.to_lower().contains(" kike") ||
|
||||
content.to_lower().contains("kike ") ||
|
||||
content.to_lower().contains(" nigger") ||
|
||||
content.to_lower().contains("nigger ") ||
|
||||
content.to_lower().contains("nigger ")
|
||||
{
|
||||
return MUTE;
|
||||
}
|
||||
@ -96,7 +95,7 @@ fn filter() {
|
||||
|
||||
// Accept if the PoW is large enough
|
||||
if pow >= 25 {
|
||||
return ALLOW
|
||||
return ALLOW;
|
||||
}
|
||||
|
||||
// Accept if their NIP-05 is valid
|
||||
|
Loading…
Reference in New Issue
Block a user