Jump to content

Why not working the swearfilter?


Turbe$Z

Recommended Posts

i added this lines to my admintag script, but...doesn't working. :S no errors/warnings in debugscript 3 :'s

settings = {
['antiswear'] = {
	['enabled'] = true,
	['swears'] = {
		['asshole'] = '*******',
		[':O'] = '****',
		['slut'] = '****',
		['bitch'] = '*****',
		[':O'] = '****',
		['whore'] = '*****',
		['pussy'] = '*****',
		[':O'] = '***',
		['perro'] = '*****',
		['puta'] = '****',
		['joder'] = '*****'
		}
}
}
	if settings['antiswear']['enabled'] then
		for i, v in pairs(settings['swearFilter']['swears']) do
			while msg:lower():find(i:lower(),1,true) do
				local start, end_ = msg:lower():find(i:lower(),1,true)
				local found = msg:sub(start,end_)
				msg = msg:gsub(found,v)
			end
		end
	end

what wrong? how to fix this?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...