Code: Select all
-- vim:ts=4:sw=4:noet
-- AntiAdv.lua -- Sedulus, 2003
local addr = {
"newtransformers.dynip.com",
"newtransformers.no-ip.org",
"tfgalaxy.no-ip.org",
"transformers4ever.dyndns.org",
"193.182.174.183",
"thisisatest.hub.com",
"spacebridge",
}
local opchat_name = "-=Operators=-" -- user onlineness alerts gets sent here
local function send( c )
c:privateMessage( ""..nick.." is spamming - this is yakko testing", opchat_name )
end
function dchpp.clientMessage( client, msg )
if not client:isOp() then
for k,v in addr do
if string.find( msg, v, 1, 1 ) then
client:hubMessage( msg, client:getNick() )
send( c )
return dchpp.ACTION_STOP
end
end
end
end