All pastes #580016 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-20 22:48 UTC
rendered paste body
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
    }
  }
}