Er, wait, I botched that up a bit. Corrected:

Code:
on *:TEXT:*:#: {
if ($1 isin badword badword badword badword) { /msg nickname message }
}


Again, let me emphasize that this SHOULD work, but I'm not quite that confident in my abilities. Tell me how it goes!