Advertisement
nutbaby

#IP-Nick Tracker - Updated

Jun 1st, 2016
275
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [IP Nick Tracker - WHOIS ONJOIN]
  2. ----------------------------------------------
  3. - The IP Nick Tracker whoises on join in all channels you're part of
  4. - It opens in another @window and not in active window to keep your active window clean
  5. - The whois info and nicks tracked are being saved in tracker.txt for future reference
  6. - The IP Nick Tracker displays Nick, Alt Nicks used, IP address, Full names used, last seen (date) and channel just where it got spotted joining.
  7. ----------------------------------------------
  8.  
  9.  
  10.  
  11. #IP-Nick Tracker on
  12. alias tracker.txt {
  13. return tracker.txt
  14. }
  15.  
  16. on *:JOIN:#: { window -De @whois
  17. var %mask = $mask($fulladdress,2)
  18. var %nfname = $mask($fulladdress,0)
  19.  
  20. ; get the previous nicks
  21. var %nicks = $readini(tracker.txt, %mask, nicks)
  22.  
  23. ; get the previous full names
  24. var %fname = $readini(tracker.txt, %mask, fullname)
  25.  
  26. ; add the new nick ($addtok will take care of duplicates)
  27. var %nicks = $addtok(%nicks,$nick,32)
  28.  
  29. ; add the new fname ($addtok will take care of duplicates)
  30. var %fname = $addtok(%fname,$ial(%mask).user,32)
  31.  
  32.  
  33. ; update the nicks
  34. writeini -n tracker.txt %mask nicks %nicks
  35.  
  36. ; update the seen time
  37. writeini -n tracker.txt %mask seentime $date
  38.  
  39. ; update the fullname
  40. writeini -n tracker.txt %mask fullname %fname
  41.  
  42. echo -t @whois BEGIN > $nick ------------------------------------------
  43. echo -t @whois IP %mask
  44. echo -t @whois Alt Nicks: $readini(tracker.txt, %mask, nicks)
  45. echo -t @whois Full Names: $readini(tracker.txt, %mask, fullname)
  46. echo -t @whois Last seen on $readini(tracker.txt, %mask, seentime)
  47. echo -t @whois Spotted Just Joined In: $chan
  48. echo -t @whois END > $nick ------------------------------------------
  49. }
  50.  
  51. alias ntrack {
  52. var %mask = $address($1,2)
  53. var %nfname = $address($1,0)
  54. ; get the previous nicks
  55. var %nicks = $readini(tracker.txt, %mask, nicks)
  56. ; get the pervious full names
  57. var %fname = $readini(tracker.txt, %mask, fullname)
  58. ; add the new nick ($addtok will take care of duplicates)
  59. var %nicks = $addtok(%nicks,$nick,32)
  60. ; add the new fname ($addtok will take care of duplicates)
  61. var %fname = $addtok(%fname,$ial(%mask).user,32)
  62. echo -a 12 $1 On The Host %mask has used the nicks: $readini(tracker.txt, %mask, nicks) and the full names: $readini(tracker.txt, %mask, fullname) and was last seen on $readini(tracker.txt, %mask, seentime)
  63. }
  64.  
  65. alias tracker.txt {
  66. return tracker.txt
  67. }
  68.  
  69. on !1:nick: { window -De @whois
  70. var %mask = $mask($fulladdress,2)
  71. var %nfname = $mask($fulladdress,0)
  72.  
  73. ; get the previous nicks
  74. var %nicks = $readini(tracker.txt, %mask, nicks)
  75.  
  76. ; get the pervious full names
  77. var %fname = $readini(tracker.txt, %mask, fullname)
  78.  
  79. ; add the new nick ($addtok will take care of duplicates)
  80. var %nicks = $addtok(%nicks,$newnick,32)
  81.  
  82. ; add the new fname ($addtok will take care of duplicates)
  83. var %fname = $addtok(%fname,$ial(%mask).user,32)
  84.  
  85. ; update the nicks
  86. writeini -n tracker.txt %mask nicks %nicks
  87.  
  88. ; update the seen time
  89. writeini -n tracker.txt %mask seentime $date
  90.  
  91. ; update the fullname
  92. writeini -n tracker.txt %mask fullname %fname
  93.  
  94. echo -t @whois BEGIN $nick ------------------------------------------
  95. echo -t @whois IP %mask
  96. echo -t @whois Alt Nicks: $readini(tracker.txt, %mask, nicks)
  97. echo -t @whois Full Names: $readini(tracker.txt, %mask, fullname)
  98. echo -t @whois Last seen on $readini(tracker.txt, %mask, seentime)
  99. echo -t @whois END $nick ------------------------------------------
  100. }
  101.  
  102. #IP-Nick Tracker end
Advertisement
RAW Paste Data Copied
Advertisement