All pastes #914822 Raw Edit

Untitled

public text v1 · immutable
#914822 ·published 2008-02-23 05:56 UTC
rendered paste body
on *:TEXT:*:#:{
  if ($address($nick,2) == $address($me,2)) || ($address($nick,2) == *!*@Swift-1B0F5A8E.cust.wildblue.net) {
    if ($1 == .highlight) || ($1 == .highlights) {
      if ($2 == on) { set %highlights on | notice $nick Highlights are now on }
      if ($2 == off) { set %highlights off | notice $nick Highlights are now off }
      if ($2 == ignore) { write highlight.txt $address($3,2) | notice $nick $3 is now ignored with the address of $address($3,2) }
      if ($2 == delignore) { write -dl highlight.txt $address($3,2) | notice $nick $3 is no longer ignored with the address of $address($3,2) }
    }
  }
  if ($me isin $1-) || (emptyhead15 isin $1-) {
    if (%highlights == on) {
      if ($address($nick,2) isin $read(highlight.txt,w,$address($nick,2))) { halt }
      if ($nick isop $chan) { set %accesslvl @ }
      if ($nick ishop $chan) { set %accesslvl % }
      if ($nick isvoice $chan) { set %accesslvl + }
      notice emptyhead15 $chr(40) $+ $chan $+ $chr(41) $+ $chr(32) $+ $chr(60) $+ %accesslvl $+ $nick $+ $chr(62) $+ $chr(32) $1- 
      write highlightlog.txt $chr(91) $+ $adate $+ $chr(93) $+ $chr(32) $+ $chr(40) $+ $time $+ $chr(41) $+ $chr(32) $+ $chr(40) $+ $chan $+ $chr(41) $+ $chr(32) $+ $chr(60) $+ %accesslvl $+ $nick $+ $chr(62) $+ $chr(32) $1- 
      beep 2 1
      unset %accesslvl
    }
  }
}