I think you mistook $2 == $me for $nick. Your current code will result in someone says his or her own nick for the running client to be able to say thanks to themselves instead of the "op." You should also make your text match for some other possibilities of sending their thankfulness by using regex:> on $*:TEXT:/!(thanx|thx|thanks?( |you|u))/iS:#: {
if ($2 == $me) {
.msg $chan Pat yourself on the back, but I am not adding a thanks to your record.
}The halt is not needed, and your other two text events can be combined into one.