All pastes #496732 Raw Edit

shot

public text v1 · immutable
·published 2007-05-19 12:46 UTC
rendered paste body
on *:TEXT:!copy*:#: {
  if ($2 == on) {
    remini copynick.ini $chan allowed
    msg $chan now ON
    halt
  }
  if ($2 == off) {
    writeini copynick.ini $chan allowed off
    msg $chan now OFF
    halt
  }
  else {
    if ($readini(copynick.ini,$chan,allowed) == $null) {
      if (!$2) {
        writeini copynick.ini $chan $nick on
        msg $chan now copying $nick
      }
      else {
        writeini copynick.ini $chan $2 on
        msg $chan now copying $2
      }
    }
  }
}

on *:TEXT:!stopcopy*:#: {
  if ($readini(copynick.ini,$chan,$2) == on) {
    if (!$2) {
      remini copynick.ini $chan $nick
      msg $chan now OFF for  $nick 
      halt
    }
    else {
      remini copynick.ini $chan $2
      msg $chan now OFF for  $2 
      halt
    }
  }
  else {
    notice $nick uuuerr wrong
  }
}

on *:TEXT:*:#: {
  if ($readini(copynick.ini,$chan,allowed) == off) {
    halt
  }
  else {
    if ($readini(copynick.ini,$chan,$nick) == on) {
      writeini copy.ini $nick Copy $1-
      msg $chan $readini(copy.ini,$nick,Copy)
    }
  }
}