Oh my bad. I thought you were laughing when you said that...I should have read your whole sentence closely. :p
This should do it:
on @*:text:*:#:{
var %e = lol|lm(ao|fao)|haha
if (!$nick(#,$nick,oh)) && (!$regex($1-,/( $+ %e $+ )/iS)) {
if ($readini(logs.ini,$nick,last) == $strip($1-)) {
if ($readini(logs.ini,$nick,warns) == $null) {
writeini -n logs.ini $nick warns 0
}
writeini -n logs.ini $nick warns $calc($readini(logs.ini,$nick,warns) + 1)
if ($readini(logs.ini,$nick,warns) == 4) {
.kick $chan $nick Repetitive messages
}
}
if ($readini(logs.ini,$nick,last) != $strip($1-)) {
writeini -n logs.ini $nick warns 0
}
writeini -n logs.ini $nick last $strip($1-)
}
}