Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F174428
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, Apr 18, 1:59 PM (1 d, 7 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ee/38/ce3ae31a4dd199b6c8976218ad2f
Default Alt Text
init.lua (431 B)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment