Nick Tracker

By TMFKSOFT on May 09, 2013

Ever wanted to track a user on a network via their nick?
Well this simple script allows you to.
Just right click a user and hit add to watch list!
The rest is self explanatory.

You can manually control your watch list via the /ntrack command.
The level is optional

Add a user:
/ntrack add NICK [Level]

Remove a user:
/ntrack del NICK

Remove ALL users:
/ntrack del -all

; mIRC Nick Tracker by Thomas Edwards - Created for Blizzardo1
; Allows you to track users.
; ## Info Levels:
; - Red = Popup Tip + Notice on the currently active channel.
; - Orange = Notice on the currently active channel.
; - Info = Notice on the currently active channel.

on 1:JOIN:#:{
  if ($nick != $me) {
    var %level $readini(nick_track.ini,$network,$nick)
  }
  if (%level != $null) {
    if (%level == 1) {
      ; Level RED
      echo 4 -at * [WARNING] $nick has just joined $chan and they are on your watch list for $network 
      noop $tip(2,Nick Tracker,4[!] $nick joined $chan on $network,$null,$null,$null,/join chan)
    }
    else if (%level == 2) {
      ; Level Orange
      echo 7 -at * [MODERATION] $nick has just joined $chan and they are on your watch list for $network 
    }
    else {
      ; Level Info
      echo 12 -at * [Info] $nick is on your watch list for $network and has joined $chan 
    }
  }
}
on 1:QUIT:{
  if ($readini(nick_track.ini,$network,$nick) != $null) {
    echo 12 -at * [INFO] Has quit $network $+! Removed tracking on their nick.
  }
}
on 1:NICK:{
  if ($readini(nick_track.ini,$network,$nick) != $null) {
    writeini nick_track.ini $network $newnick $readini(nick_track.ini,$network,$nick)
    echo 12 -at * [INFO] Changed their nick from $nick to $newnick $+ , Updated user Tracker!
  }
}
menu nicklist {
  Nick Tracker
  .Add $$1 to the watch list
  ..Warning Level RED:/ntrack add $$1 1
  ..Warning Level Orange:/ntrack add $$1 2
  ..Warning Level Blue (Information):/ntrack add $$1 1
  .Remove $$1 from the watch list.:/ntrack del $$1
  .Remove all nicks from $network watch list:/ntrack del -all
}
menu * {
  .Remove all nicks from $network watch list:/ntrack del -all
}
alias ntrack {
  if ($2 == $me) {
    echo -at You can't track yourself dummy!
    halt
  }
  if ($1 == add) {
    ; Adding a nick
    writeini nick_track.ini $network $2 $3
    echo 12 -at * Now tracking $2 with level $iif($3 != $null,$3,1) 
  }
  else if ($1 == del) {
    if ($2 == -all) {
      remini nick_track.ini $network
      echo 12 -at * No longer tracking any nicknames on $network 
    }
    else {
      ; Removing a Nick
      remini nick_track.ini $network $2
      echo 12 -at * No longer tracking $2 
    }
  }
}

Comments

Sign in to comment.
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.