All pastes #589035 Raw Edit

Miscellany

public text v1 · immutable
#589035 ·published 2007-06-25 19:52 UTC
rendered paste body
on *:TEXT:!av list:#:{
  if ($nick ishop #blazing_hearts) || ($nick isop #bh_ops) || ($nick isop #blazing_hearts) || ($nick ishop #bh_ops) {
    if ($readini(Pcw.ini,$chan,2) == OFF) { $notice $nick 10[CHANNEL COMMANDS] My scripts are off | halt }
    if ($readini(Pcw.ini,$chan,1) == OFF) { notice $nick 10[WORLD] The world commands are off | halt }
    notice $nick The people waiting for autovoice are :
    play -n $nick autovoicebh.txt 300
  }
}

on *:TEXT:!av add *:#:{
  if ($nick ishop #blazing_hearts) || ($nick isop #bh_ops) || ($nick isop #blazing_hearts) || ($nick ishop #bh_ops) {
    if ($readini(Pcw.ini,$chan,2) == OFF) { $notice $nick 10[CHANNEL COMMANDS] My scripts are off | halt }
    if ($readini(Pcw.ini,$chan,1) == OFF) { notice $nick 10[WORLD] The world commands are off | halt }
    if ($read(autovoicebh.txt,w,$+(*,$3,*))) {
      notice $nick $3 is alredy on The autovoice list
    }
    else {
      if ($3 ison $chan) {
        write autovoicebh.txt $3
        notice $nick $3 has been added to the unvoiced list
      }
      if ($3 !ison $chan) {
        msg $chan 4ERROR: $3 Is not on this channel
      }
    }
  }
}

on *:TEXT:!av:#:{
  if ($readini(Pcw.ini,$chan,2) == OFF) { $notice $nick 10[CHANNEL COMMANDS] My scripts are off | halt }
  if ($readini(Pcw.ini,$chan,1) == OFF) { notice $nick 10[WORLD] The world commands are off | halt }
  if ($nick isvoice #blazing_hearts) {
    if ($read(autovoicebh.txt,w,$+($nick))) {
      notice $nick you have alredy been added to the unvoiced list
    }
    else {
      write autovoicebh.txt $nick
      notice $nick You are now on the Autovoice list, our operators will check this list soon.
    }
  }
  else {
    if ($nick isop $chan) || ($nick ishop $chan) {
      notice $nick You are alredy autovoiced or Do not need it as you are op/halfop of this channel
    }
  }
}

on *:TEXT:!av del *:#:{
  if ($nick ishop #blazing_hearts) || ($nick isop #bh_ops) || ($nick isop #blazing_hearts) || ($nick ishop #bh_ops) {
    if ($readini(Pcw.ini,$chan,2) == OFF) { $notice $nick 10[CHANNEL COMMANDS] My scripts are off | halt }
    if ($readini(Pcw.ini,$chan,1) == OFF) { notice $nick 10[WORLD] The world commands are off | halt }
    if ($read(autovoicebh.txt,w,$+(*,$3,*))) {
      write -ds $+ $3 autovoicebh.txt
      notice $nick The name $3 has been removed off the Blazing Hearts autovoice list
    }
    else {
      notice $nick $3 wasnt on the autovoice list
    }
  }
}