Page Menu
Home
1F616EMO Bugtracker
Search
Configure Global Search
Log In
Files
F286140
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, Jun 14, 1:31 AM (1 d, 19 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5c/5b/a20061ec15a2e6597737c97e0273
Default Alt Text
init.lua (423 B)
Attached To
Mode
rTWIMODS Survival Server Custom Modifications
Attached
Detach File
Event Timeline
Log In to Comment