Guest User

NickTracer v1.1 by Mechonit (irc.icq.com) part 1

a guest
May 29th, 2015
657
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 6.05 KB | None | 0 0
  1. ;NICK TRACER v1.1 coded by Mechonit from IrCQnet (irc.icq.com)
  2. ;Please do NOT edit this script.
  3. ;Copyright 2015 Mechonit www.gwura.com
  4.  
  5. ON *:LOAD: { hmake NickTracer 10000 | hmake NickBase 10000 | echo -s *** Nick Tracer 1.0 by Mechonit (IrCQnet) loaded. }
  6. ON *:START: { hmake NickTracer 10000 | hmake NickBase 10000 | hload NickTracer NickTracer.hsh | hload NickBase NickBase.hsh }
  7. ON *:EXIT: { hsave -a NickTracer NickTracer.hsh | hsave -a NickBase NickBase.hsh | hfree NickTracer | hfree NickBase }
  8.  
  9. ON *:JOIN:*: {
  10.   if (!$hget(NickTracer,$address($nick,2))) && ($wildtok($hget(NickTracer,$address($nick,2)),$nick,0,32) != 1) { hadd NickTracer $address($nick,2) $nick | halt }
  11.   if ($hget(NickTracer,$address($nick,2))) {
  12.     if ($nick != $me) && ($numtok($hget(NickTracer,$address($nick,2)),32) == 1) { echo $chan 4***7 $nick 10has been using4 $numtok($hget(NickTracer,$address($nick,2)),32) 10nickname before:14 $hget(NickTracer,$address($nick,2)) }
  13.     if ($nick != $me) && ($numtok($hget(NickTracer,$address($nick,2)),32) > 1) { echo $chan 4***7 $nick 10has been using4 $numtok($hget(NickTracer,$address($nick,2)),32) 10nicknames before:14 $hget(NickTracer,$address($nick,2)) }
  14.     if ($wildtok($hget(NickTracer,$address($nick,2)),$nick,0,32) == 1) { halt }
  15.     if ($hget(NickTracer,$address($nick,2))) && ($wildtok($hget(NickTracer,$address($nick,2)),$nick,0,32) != 1) { hadd NickTracer $address($nick,2) $nick $hget(NickTracer,$address($nick,2)) | halt }
  16.   }
  17. }
  18.  
  19. ON *:NICK: {
  20.   if (!$hget(NickTracer,$address($newnick,2))) && ($wildtok($hget(NickTracer,$address($newnick,2)),$newnick,0,32) != 1) && ($wildtok($hget(NickTracer,$address($nick,2)),$nick,0,32) != 1) { hadd NickTracer $address($newnick,2) $nick $newnick | halt }
  21.   elseif ($hget(NickTracer,$address($newnick,2))) && ($wildtok($hget(NickTracer,$address($newnick,2)),$newnick,0,32) != 1) { hadd NickTracer $address($newnick,2) $newnick $hget(NickTracer,$address($newnick,2)) | halt }
  22. }
  23. RAW 311:*: {
  24.   if ($hget(NickTracer,*!*@ $+ $4)) && ($numtok($hget(NickTracer,*!*@ $+ $4),32) == 1) { echo -a 4***7 $2 10has been using4 $numtok($hget(NickTracer,*!*@ $+ $4),32) 10nickname before:14 $hget(NickTracer,*!*@ $+ $4) }
  25.   if ($hget(NickTracer,*!*@ $+ $4)) && ($numtok($hget(NickTracer,*!*@ $+ $4),32) > 1) { echo -a 4***7 $2 10has been using4 $numtok($hget(NickTracer,*!*@ $+ $4),32) 10nicknames before:14 $hget(NickTracer,*!*@ $+ $4) }
  26. }
  27.  
  28. RAW 314:*: {
  29.   if ($hget(NickTracer,*!*@ $+ $4)) && ($numtok($hget(NickTracer,*!*@ $+ $4),32) == 1) { echo -a 4***7 $2 10has been using4 $numtok($hget(NickTracer,*!*@ $+ $4),32) 10nickname before:14 $hget(NickTracer,*!*@ $+ $4) }
  30.   if ($hget(NickTracer,*!*@ $+ $4)) && ($numtok($hget(NickTracer,*!*@ $+ $4),32) > 1) { echo -a 4***7 $2 10has been using4 $numtok($hget(NickTracer,*!*@ $+ $4),32) 10nicknames before:14 $hget(NickTracer,*!*@ $+ $4) }
  31. }
  32.  
  33. ;Command /user.check <Nickanme> shows all nicknames a nicks host has used. Nick MUST be online!
  34.  
  35. alias user.check {
  36.   if ($hget(NickTracer,$address($1,2))) {
  37.     if ($numtok($hget(NickTracer,$address($1,2)),32) == 1) { echo -a 4***7 $1 10has been using4 $numtok($hget(NickTracer,$address($1,2)),32) 10nickname before:14 $hget(NickTracer,$address($1,2)) }
  38.     if ($numtok($hget(NickTracer,$address($1,2)),32) > 1) { echo -a 4***7 $1 10has been using4 $numtok($hget(NickTracer,$address($1,2)),32) 10nicknames before:14 $hget(NickTracer,$address($1,2)) }
  39.   }
  40.   if (!$hget(NickTracer,$address($1,2))) { echo -a 4***10The host belonging to7 $1 10was not found in the database }
  41. }
  42.  
  43. ;Command /host.check <*!*@Host.Com> shows all nicknames a host has used. Please use *!*@Host.Com as host format.
  44.  
  45. alias host.check {
  46.   if ($hget(NickTracer,$1)) {
  47.     if ($numtok($hget(NickTracer,$1),32) == 1) { echo -a 4***10 The host7 $1 10has been using4 $numtok($hget(NickTracer,$1),32) 10nickname before:14 $hget(NickTracer,$1) }
  48.     if ($numtok($hget(NickTracer,$1),32) > 1) { echo -a 4***10 The host7 $1 10has been using4 $numtok($hget(NickTracer,$1),32) 10nicknames before:14 $hget(NickTracer,$1) }
  49.   }
  50.   if (!$hget(NickTracer,$1)) { echo -a 4***10The host7 $1 10was not found in the database. }
  51. }
  52.  
  53. ;Command /host.del <*!*@Host.Com> deletes all nicknames refered to the host including the host. Please use *!*@Host.Com as host format.
  54. ;Attention! If a user with the delted host joins a channel where you are in, the host will be added again.
  55.  
  56. alias host.del {
  57.   if ($hget(NickTracer,$1)) { hdel NickTracer $1 | echo -a 4***10 Successfully delted7 $1 10from the database. }
  58. }
  59.  
  60. ;Command nick.check <nickname> shows which hosts a nickname has used in the format [email protected].
  61.  
  62. alias nick.check {
  63.   if ($hget(NickBase,$1)) {
  64.     if ($numtok($hget(NickBase,$1),32) == 1) { echo -a 4***7 $1 10has been using4 $numtok($hget(NickBase,$1),32) 10host before:14 $hget(NickBase,$1) }
  65.     if ($numtok($hget(NickBase,$1),32) > 1) { echo -a 4***7 $1 10has been using4 $numtok($hget(NickBase,$1),32) 10hosts before:14 $hget(NickBase,$1) }
  66.   }
  67.   if (!$hget(NickBase,$1)) { echo -a 4***7 $1 10was not found on the database. }
  68. }
  69.  
  70. ;Comand /nick.del <nick> deletes a nickname including all host belonging to this nickname from the database.
  71.  
  72. alias nick.del {
  73.   if ($hget(NickBase,$1)) { hdel NickBase $1 | echo -a 4***10 Successfully deleted7 $1 10from the database. }
  74. }
  75.  
  76. ;Command /user.add <nickname> adds a nickname with the related host the nicknames uses at the moment. Nickname MUST be online
  77.  
  78. alias user.add {
  79.   if (!$hget(NickTracer,$address($1,2))) { hadd NickTracer $address($1,2) $1 }
  80.   if ($hget(NickTracer,$address($1,2))) && ($wildtok($hget(NickTracer,$address($1,2)),$1,0,32) != 1)  { hadd NickTracer $address($1,2) $1 $hget(NickTracer,$address($1,2)) }
  81. }
  82.  
  83. ;Command /nick.add <nickname> adds a host to its belonging nickname. Nickname  musst be online!
  84. alias nick.add {
  85.   if ($hget(NickBase,$1)) && ($wildtok($hget(NickBase,$1),$address($1,5),0,32) != 1) { hadd NickBase $1 $address($1,5) $hget(NickBase,$1) }
  86.   if (!$hget(NickBase,$1)) { hadd NickBase $1 $address($1,5) }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment