Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F156521
init.lua
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
423 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
core
.
get_player_by_name
(
name
)
then
core
.
chat_send_player
(
name
,
"Spam keyword matched. (#14)"
)
return
true
end
end
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 9:45 PM (1 d, 15 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
dc/a4/1aa37123a3c7348026e888b43d4f
Default Alt Text
init.lua (423 B)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment