Advertisement
westor

AKA FIX for Mr_Me v1.0

Dec 31st, 2019
884
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.12 KB | None | 0 0
  1. ON *:START: {
  2.   hmake trackusers 1000
  3.  
  4.   if ($file(trackusers.dat)) { hload trackusers trackusers.dat }
  5. }
  6.  
  7. ON *:EXIT: {
  8.   if ($hget(trackusers)) { hsave trackusers trackusers.dat }
  9. }
  10.  
  11. ON !*:OPEN:?: {
  12.   echo $color(topic) -t $nick * Now talking to: $address at $date $+ .
  13.  
  14.   var %n = $hget(trackusers,$address($nick,2))
  15.  
  16.   if (%n) {
  17.     if ($istok(%n,$nick,32)) { var %d = $deltok(%n,$findtok(%n,$nick,1,32),32) }
  18.     else { var %d = %n }
  19.  
  20.     echo $color(topic) -t $nick # * Also known with nick $+ $iif($numtok(%d,32) > 1,s:,:) %d
  21.  
  22.     return
  23.   }
  24.  
  25.   if (-sBNC !== $nick) { echo $color(topic) -t $nick # * $nick doesn't have any other nicknames! }
  26. }
  27.  
  28. ON !*:JOIN:#: {
  29.   var %n = $hget(trackusers,$address($nick,2))
  30.  
  31.   if (%n) {
  32.     if ($istok(%n,$nick,32)) { var %d = $deltok(%n,$findtok(%n,$nick,1,32),32) }
  33.     else { var %d = %n }
  34.  
  35.     echo $colour(join) -ti2 $chan * $nick 7has also known with nick $+ $iif($numtok(%d,32) > 1,s:,:) %d
  36.  
  37.     if (!$istok(%n,$nick,32)) {
  38.       if ($numtok(%n,32) >= 15) { var %n = $gettok(%n,-14--1,32) }
  39.  
  40.       hadd trackusers $address($nick,2) %n $nick
  41.     }
  42.  
  43.     return
  44.   }
  45.  
  46.   hadd trackusers $address($nick,2) $nick
  47. }
  48.  
  49. ON *:NICK: {
  50.   var %n = $hget(trackusers,$address($newnick,2))
  51.  
  52.   if (%n) {
  53.     if (!$istok(%n,$newnick,32)) {
  54.       if ($numtok(%n,32) >= 15) { var %n = $gettok(%n,-14--1,32) }
  55.  
  56.       hadd trackusers $address($newnick,2) %n $newnick
  57.     }
  58.  
  59.     return
  60.   }
  61.  
  62.   hadd trackusers $address($nick,2) $newnick
  63. }
  64.  
  65. menu Nicklist {
  66.   Track Users
  67.   .View Other Nicknames: {
  68.     if (!$address($$1,2)) { echo $colour(info) -ti2 # * IAL not updated for $$1 $+ , performing userhost lookup.. | userhost $$1 | return }
  69.  
  70.     var %n = $hget(trackusers,$address($$1,2))
  71.  
  72.     if (%n) {
  73.       if ($istok(%n,$$1,32)) { var %d = $deltok(%n,$findtok(%n,$$1,1,32),32) }
  74.       else { var %d = %n }
  75.  
  76.       echo $colour(join) -ti2 # * $$1 8has also known with nick $+ $iif($numtok(%d,32) > 1,s:,:) %d
  77.  
  78.       return
  79.     }
  80.  
  81.     echo $colour(join) -ti2 # * $$1 has not been known by any other nickname
  82.   }
  83.   .-
  84.   .Reset
  85.   ..OK:hdel trackusers $address($$1,2)
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement