Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F172300
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
579 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
local
register_on_chat_message
=
minetest
.
global_exists
(
"beerchat"
)
and
beerchat
.
register_on_chat_message
or
minetest
.
register_on_chat_message
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
Tue, Apr 14, 7:15 AM (4 d, 17 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
41/82/96eaf572f09f4faa0d6832640428
Default Alt Text
init.lua (579 B)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment