Advertisement
glacier_rat

Untitled

Aug 18th, 2010
2,549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on *:TEXT:!spyon *:#: {
  2.   if ($me !ison $2) { msg $chan I can spy only on channels that I am on. }
  3.   else { set %spy.target $chan | set %spy.source $2- | msg $chan I am now spying on $2 $+ . }
  4. }
  5. on *:TEXT:!spyoff:#: { unset %spy.* | msg $chan I am no longer spying. }
  6. on *:TEXT:*:%spy.source: { msg %spy.target $+(,$chr(91),$spy.rank($nick),$chr(93),$chr(32),$chr(91),$nick,$chr(93)) $1- }
  7. on *:ACTION:*:%spy.source: { msg %spy.target $+(,$chr(91),$spy.rank($nick),$chr(93)) * $nick $1- }
  8. on *:JOIN:%spy.source: { msg %spy.target $+ ---> $nick has just joined. }
  9. on *:PART:%spy.source: { msg %spy.target $+ ---> $nick has just left. }
  10. on *:KICK:%spy.source: { msg %spy.target $+ ---> $knick was kicked by $nick $+ . }
  11. on *:RAWMODE:%spy.source: { msg %spy.target $+ ---> $nick set mode $1- $+ . }
  12. alias spy.rank {
  13.   if ($1 isop %spy.source) { return $chr(64) }
  14.   elseif ($1 ishop %spy.source) { return $chr(37) }
  15.   elseif ($1 isvoice %spy.source) { return $chr(43) }
  16.   else { return $chr(45) }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement