All pastes #515341 Raw Edit

Mine

public text v1 · immutable
#515341 ·published 2007-05-28 04:16 UTC
rendered paste body
on *:TEXT:*:?:{ 
  set %away2 $away 
  if (%pmblocker == ON) && (%away2 == $false) { 
    notice $nick [~Dave'Script~]12,4 I currently have PM's turned off.7,1 Message auto ignored. 1,11 If it's important type /ms send Kaiser <Message Here> 
    echo -a [~Dave'Script~] 9You just recieved a PM from $nick which was auto ignored. Type /pmblocker OFF to deactivate the blocker. 
    close -m 
  } 
  if (%pmblocker == ON) && (%away2 == $true) { 
    notice $nick [~Dave'Script~]12,4 I currently have PM's turned off.7,1 I am away ( $+ $awaymsg $+ ) 
    close -m 
  } 
  if (%pmblocker == OFF) { 
    halt 
  } 
} 

alias pmblocker { 
  if ($1 == ON) || ($1 == OFF) { 
    set %pmblocker $1 
    echo -a [~Dave'Script~] PM Blocker has been turned $1 $+ ! 
  } 
  else { 
    echo -a [~Dave'Script~] You must specify if you want to turn the PM Blocker ON or OFF. Type /pmblocker [ON/OFF] 
  } 
}