All pastes #357825 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-02-15 22:48 UTC
rendered paste body
on *:dialog:blacklist:sclick:37:{
  if ($did($dname,37).state == 1) {
    /did -e blacklist 33
    /did -e blacklist 38
    /did -c blacklist 37
    set %externaluse on
  }
  else {
    if ($did($dname,37).state == 0) {
      /did -b blacklist 33
      /did -b blacklist 38
      /did -u blacklist 37
      set %externaluse off
    }
  }
}




on *:dialog:blacklist:sclick:33:{
  if ($did($dname,33).state == 1) && (%externaluse == on) {
    set %externaluse chan
  }
  else {
    if ($did($dname,33).state == 1) && (%externaluse == nick) {
      set %externaluse nickchan
    }
  }
}

on *:dialog:blacklist:sclick:38: {
  if ($did($dname,38).state == 1) && (%externaluse == on) {
    set %externaluse nick
  }
  else {
    if ($did($dname,38).state == 1) && (%externaluse == chan) {
      set %externaluse nickchan
    }
  }
}

on *:dialog:blacklist:init:*:{
  loadbuf -o blacklist 11 nick_blacklist.txt
  loadbuf -o blacklist 23 chan_blacklist.txt
  if (%externaluse == on) {
    /did -e blacklist 33
    /did -e blacklist 38
    /did -c blacklist 37
    else {
      if (%externaluse == off) {
        /did -b blacklist 33
        /did -b blacklist 38
      }
      else {
        if (%externaluse == nick) {
          /did -e blacklist 38
          /did -e blacklist 33
          /did -c blacklist 37
          /did -c blacklist 38
        }
        else {
          if (%externaluse == chan) {
            /did -e blacklist 33
            /did -e blacklist 38
            /did -c blacklist 37
            /did -c blacklist 33
          }
          else {
            if (%externaluse == nickchan) {
              /did -e blacklist 33
              /did -e blacklist 38
              /did -c blacklist 37
              /did -c blacklist 38
              /did -c blacklist 33
            }
          }
        }
      }
    }
  }
}


on *:dialog:blacklist:sclick:13:{
  if ($did($dname,37).state == 1) && ($did($dname,38).state == 0) {
    set %externaluse off
  } 
  else {
    if ($did($dname,37).state == 1) && ($did($dname,33).state == 0) {
      set %externaluse off
    }
    else {
      if ($did($dname,37.state == 1) && ($did($dname,33).state == 0) && ($did($dname,38).state == 0) {
        set %externaluse off)
      }
    }
  }
}