All pastes #213013 Raw Edit

Mine

public text v1 · immutable
#213013 ·published 2006-10-21 04:40 UTC
rendered paste body
help me it wont respond to @unspy

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