Advertisement
SpliftOn

NICKTRAKERS

Sep 28th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. #IP-Nick Tracker on
  2. alias tracker.txt {
  3. return tracker.txt
  4. }
  5.  
  6. on *:JOIN:#: { window -De @whois
  7. var %mask = $mask($fulladdress,2)
  8. var %nfname = $mask($fulladdress,0)
  9.  
  10. ; get the previous nicks
  11. var %nicks = $readini(tracker.txt, %mask, nicks)
  12.  
  13. ; get the previous full names
  14. var %fname = $readini(tracker.txt, %mask, fullname)
  15.  
  16. ; add the new nick ($addtok will take care of duplicates)
  17. var %nicks = $addtok(%nicks,$nick,32)
  18.  
  19. ; add the new fname ($addtok will take care of duplicates)
  20. var %fname = $addtok(%fname,$ial(%mask).user,32)
  21.  
  22.  
  23. ; update the nicks
  24. writeini -n tracker.txt %mask nicks %nicks
  25.  
  26. ; update the seen time
  27. writeini -n tracker.txt %mask seentime $date
  28.  
  29. ; update the fullname
  30. writeini -n tracker.txt %mask fullname %fname
  31.  
  32. echo -t @whois BEGIN > $nick ------------------------------------------
  33. echo -t @whois IP %mask
  34. echo -t @whois Alt Nicks: $readini(tracker.txt, %mask, nicks)
  35. echo -t @whois Full Names: $readini(tracker.txt, %mask, fullname)
  36. echo -t @whois Last seen on $readini(tracker.txt, %mask, seentime)
  37. echo -t @whois Spotted Just Joined In: $chan
  38. echo -t @whois END > $nick ------------------------------------------
  39. }
  40.  
  41. alias ntrack {
  42. var %mask = $address($1,2)
  43. var %nfname = $address($1,0)
  44. ; get the previous nicks
  45. var %nicks = $readini(tracker.txt, %mask, nicks)
  46. ; get the pervious full names
  47. var %fname = $readini(tracker.txt, %mask, fullname)
  48. ; add the new nick ($addtok will take care of duplicates)
  49. var %nicks = $addtok(%nicks,$nick,32)
  50. ; add the new fname ($addtok will take care of duplicates)
  51. var %fname = $addtok(%fname,$ial(%mask).user,32)
  52. 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)
  53. }
  54.  
  55. alias tracker.txt {
  56. return tracker.txt
  57. }
  58.  
  59. on !1:nick: { window -De @whois
  60. var %mask = $mask($fulladdress,2)
  61. var %nfname = $mask($fulladdress,0)
  62.  
  63. ; get the previous nicks
  64. var %nicks = $readini(tracker.txt, %mask, nicks)
  65.  
  66. ; get the pervious full names
  67. var %fname = $readini(tracker.txt, %mask, fullname)
  68.  
  69. ; add the new nick ($addtok will take care of duplicates)
  70. var %nicks = $addtok(%nicks,$newnick,32)
  71.  
  72. ; add the new fname ($addtok will take care of duplicates)
  73. var %fname = $addtok(%fname,$ial(%mask).user,32)
  74.  
  75. ; update the nicks
  76. writeini -n tracker.txt %mask nicks %nicks
  77.  
  78. ; update the seen time
  79. writeini -n tracker.txt %mask seentime $date
  80.  
  81. ; update the fullname
  82. writeini -n tracker.txt %mask fullname %fname
  83.  
  84. echo -t @whois BEGIN $nick ------------------------------------------
  85. echo -t @whois IP %mask
  86. echo -t @whois Alt Nicks: $readini(tracker.txt, %mask, nicks)
  87. echo -t @whois Full Names: $readini(tracker.txt, %mask, fullname)
  88. echo -t @whois Last seen on $readini(tracker.txt, %mask, seentime)
  89. echo -t @whois END $nick ------------------------------------------
  90. }
  91.  
  92. #IP-Nick Tracker end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement