All pastes #418403 Raw Edit

Untitled

public text v1 · immutable
#418403 ·published 2007-03-31 16:46 UTC
rendered paste body
on *:TEXT:@spy *:#: { 
  if ($nick isop $chan || $nick ishop $chan) {
  if (%chtext == on) { msg $chan 5—›7 I am already spying on %spy1 $+ , type @unspy to quit spying at that channel! } 
  else { 
    join $2 
    set %spy2 $chan 
    set %spy1 $2 
    set %chtext on 
    msg %spy2 $topic(%spy1) 
    msg %spy2 $nick(%spy1,0) 
  } 
} 

on *:TEXT:*:%spy1: { 
  if (%chtext == ON) {  msg %spy2 5—›14 ( $+ %spy1 $+ )< $$+ $nick $$+ > $1- } 
  else { halt } 
} 
on *:ACTION:*:%spy1: { 
  if (%chtext == ON) { msg %spy2 5—›14 ( $+ %spy1 $+) < $+ $nick $+ > $1- } 
  else { halt } 
} 
on *:JOIN:%spy1: { 
  if (%chtext == ON) { msg %spy2 5—›15 ( $+ %spy1 $+ ) $nick ( $+ $mask($address,3) $+ ) has joined %spy1 } 
  else { halt } 
} 
on *:PART:%spy1: { 
  if (%chtext == ON) { msg %spy2 5—›15 ( $+ %spy1 $+ ) $nick ( $+ $mask($address,3) $+ ) has left %spy1 } 
  else { halt } 
} 
on *:QUIT: { 
  if (%chtext == ON) { 
    if ( $nick ison %spy1 ) {  msg %spy2 5—›15 ( $+ %spy1 $+ ) $nick has quit IRC ( $+ $1- $+ ) } 
    else { halt } 
  } 
} 
on *:TEXT:*:#: { 
  if ($nick isop $chan || $nick ishop $chan) {
  if (@unspy == $1) { 
    msg %spy2 5—›7 Chan Spy on %spy1 is now disabled. 
    unset %spy2 
    unset %spy1 
    unset %chtext 
  } 
}