Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F285273
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
431 B
Referenced Files
None
Subscribers
None
init.lua
View Options
-- twi_mods/spam_kick/init.lua
-- Kick spammers
-- Copyright (C) 2024 1F616EMO
-- SPDX-License-Identifier: LGPL-3.0-or-later
twi_fx
.
register_on_chat_message
(
function
(
name
,
message
)
if
string.sub
(
message
,
1
,
1
)
==
"/"
then
return
end
if
string.find
(
message
,
"ronwyatt%.com"
)
and
minetest
.
get_player_by_name
(
name
)
then
minetest
.
chat_send_player
(
name
,
"Spam keyword matched. (#14)"
)
return
true
end
end
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 13, 10:03 PM (16 h, 18 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f3/17/bb5c51d86dfa4f027b8cc7a7889d
Default Alt Text
init.lua (431 B)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment