my_spy

By weaver on Jan 04, 2007

This is a short snippet i made for myself when i once needed it and have found it quiet useful since. It allows you to spy on users by opening a custom window and one can open as many as you like. It also tracks nick changes. just rightclick a nick.

menu nicklist {
  Spy: Spy $1
  Closespy: unspy $1
}

ON *:TEXT:*:#: {
  if $($+(%,spy,$nick,$cid),2) {
    if (!$window($+(@spy,.,$nick))) { spy $nick }
    echo -e $+(@spy,.,$nick) 4 $+ $timestamp  $nick $+ : $chan $+ : $1-
  }
}
ON *:NICK: {
  if $($+(%,spy,$nick,$cid),2) {
    unset $+(%,spy,$nick,$cid),2)
    set -e $+(%,spy,$newnick,$cid),2) 1
    aline $+(@spy,.,$nick) -
    aline 7 $+(@spy,.,$nick) $timestamp $nick has now changed to $newnick $+ . auto tracking $newnick
    aline $+(@spy,.,$nick) -
    echo -a 9,1Spyed on user $nick has changed nicks, following new nick $newnick
    renwin $+(@spy,.,$nick) $+(@spy,.,$newnick) 
    titlebar $+(@spy,.,$newnick) Spy module: currently spying on 4 $+ $newnick $+  $network
  }
}
alias spy {
  if (!$window($+(@spy,.,$$1))) {
    echo $active 11,1Spy window has now been opened for $$1 $+ :
    set -e $+(%,spy,$$1,$cid),2) 1
    window -kzn  $+(@spy,.,$$1) 100 50 690 460
    titlebar $+(@spy,.,$$1) Spy module: currently spying on 4 $+ $1 $+  $network | font $+(@spy,.,$$1) 12 arial bold 
  }
}
alias unspy {
  if $($+(%,spy,$$1,$cid),2) {
    window -c $+(@spy,.,$$1)
    unset $+(%,spy,$$1,$cid),2) 1
    echo -a 1,4Spy module for $$1 is now closed.
  }
  else echo -a 7,1There is no spy module set for $$1 to close.
}

Comments

Sign in to comment.
weaver   -  Jan 06, 2007

This is not a warscript. It opens a customized window for a a nick and logs all what that user has said and allows for nickname changes so it wont lose the tracker after a tracked nick changes to something else. and liquid_nitro \"So...it just tells you when a person changes nicknames?\" maybe READ the code!!

 Respond  
LIQUID_NiTrO   -  Jan 05, 2007

So...it just tells you when a person changes nicknames?
Since you have to have at least 1 common channel with someone for the on NICK event to trigger, I really see absolutely no use for this...

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.