Idiot Culler v0.643



if SERVER then
	local lennyCollection = {
		"( ͡° ͜ʖ ͡°)", "( ͠° ͟ʖ ͡°)", "ᕦ( ͡° ͜ʖ ͡°)ᕤ", "( ͡~ ͜ʖ ͡°)",
		"( ͡o ͜ʖ ͡o)", "͡° ͜ʖ ͡ -", "( ͡͡ ° ͜ ʖ ͡ °)•", "( ͡ ͡° ͡°  ʖ ͡° ͡°)",
		"(ง ͠° ͟ل͜ ͡°)ง",	"( ͡° ͜ʖ ͡ °)",	"(ʖ ͜° ͜ʖ)", "[ ͡° ͜ʖ ͡°]",
		"ヽ༼ຈل͜ຈ༽ノ", "( ͡o ͜ʖ ͡o)", "{ ͡• ͜ʖ ͡•}", "( ͡° ͜V ͡°)",
		"( ͡^ ͜ʖ ͡^)",	"( ‾ʖ̫‾)", "( ͡°╭͜ʖ╮͡° )", "ᕦ( ͡°╭͜ʖ╮͡° )ᕤ",
		"╮ (. ❛ ᴗ ❛.) ╭", "͜ʖ",
	}
	
	hook.Add( "PlayerSay", "idiotCull", function( ply, text, team )
		for _, lenny in pairs( lennyCollection ) do
			if string.find( text, lenny, 1, true ) then
				ULib.ban( ply, 15, "Idiot cull" )
			end
		end
	end)
end


check the playernames too

Doesn’t have all {} or variants.

might wanna check if ulib is installed

You could optimize that table, by just checking whether the single characters are included. I don’t see how they ever get used with any other purposes. It would also prevent people from just adding spaces between characters.

Thanks for this, probably the most useful thing i’ve seen in quite a while.

i Love you.

( ͡° ͜ʖ ͡°)

:smug:

Uh I’ll have to fix it because the 12th and 13th lennys are somehow different in that they will cause the Idiot Culler to randomly ban innocent people… All in a days work

Pass true as the 4th argument to string.find so it doesn’t try to pattern match.

Turn off patterns in string.find

So I’m guessing the first check the idiot culler does is ask idiots if they know how to install it?

Too stupid to install this? Deal with lenny’s all up in your server idiot.

why dont you sell this on scriptfodder for 9,99$ / copy