on *:TEXT:*:#castlewars: { if ($1 == !addbadword) { if ($nick isop $chan) { set %var $readini(badwords.ini,total,total) inc %var writeini badwords.ini total total %var writeini badwords.ini %var badword $2 notice $nick $2 added to badwords list. halt } } set %tbw $readini(badwords.ini,total,total) set %x 0 while (%x < %tbw) { inc %x if ($+(*,$readini(badwords.ini,%x,badword),*) iswm $1-) { ;insert script in here for kicking or w\e } } }