I'd use something like this, to prevent frequent file reads in the event of flood:
Code:
on ^*:notice:*:*: if !$read(notice.txt,w,$nick) { .ignore -nu20 $nick | halt }