Skip to content
MSN Addons

Anyone may fix this please

A TG007 community discussion started by bonTy.

Discussion 7 posts
Page 1 of 1
Open
Topic #2952 · 7 published posts · 765 views
#NickDetect on 
on *:JOIN:#: exoclonecheck $nick $address $chan 
raw knock:*: exoclonecheck $nick $address $1 

alias exoclonecheck { 
if ($1 != $me) { 
;If you want it to store more or less nicknames, 
;change this number below to the number you want to store. 
var %n 20 
;change the 5 to the number of clones you want to detect 
var %x $read($scriptdir $+ exoclonecheck.dat,sn,$2) 
if (%x == $null) write $+(",$scriptdir,exoclonecheck.dat") $2 $1 
else { 
%x = $addtok(%x,$1,32) 
if ($numtok(%x,32) > %n) %x = $deltok(%x,1,32) 
write -l $+ $readn $+(",$scriptdir,exoclonecheck.dat") $2 %x 
} 
if ($numtok(%x,32) > 1) amsg $ecc.decode($1 $+ 's last $numtok(%x,32) names: $replace(%x,$chr(32),$chr(44) $+ $chr(32))) 
elseif ((%x != $1) && (%x)) amsg $ecc.decode($1 $+ 's last name: %x) 
} 
} 

alias ecc.decode { 
if ($msn.vver) return $msn.ifdecode($1-) 
else return $1- 
} 
#NickDetect end 

Uhhhh..what exactly is wrong with it? :\

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

It doesnt work with the arabic nick names , when it msg the room , its freaked with the arabic nicks

#NickDetect on 
on *:JOIN:#:{ if ($read(~script.trust.txt,s,$msngkshort($2)) || ($2 == $me)) halt 
 exoclonecheck $msn.decode($nick) $heh($nick) $+ ! $+ $address 
} 
alias exoclonecheck { 
 if ($1 != $me) { 
   var %n 5 
   var %x $read($scriptdir $+ exoclonecheck.dat,sn,$2) 
   if (%x == $null) write $+(",$scriptdir,exoclonecheck.dat") $2 $1 
   else { 
     %x = $addtok(%x,$1,32) 
     if ($numtok(%x,32) > %n) %x = $deltok(%x,1,32) 
     write -l $+ $readn $+(",$scriptdir,exoclonecheck.dat") $2 %x 
   } 
   if ($numtok(%x,32) > 1) amsg $msn.decode($nick) $+ 's last $numtok(%x,32) names: $replace(%x,$chr(32),$chr(44) $+ $chr(32))) 
   elseif ((%x != $1) && (%x)) amsg $msn.decode($nick) $+ 's last name: %x) 
 } 
} 

alias ecc.decode { 
 if ($msn.vver) return $msn.ifdecode($1-) 
 else return $1- 
} 
#NickDetect end 

that was my try and I failed

Wouldn't that issue lay within Vincula's msn.decode alias?

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

I don't know

bonty, i have this name checker, and i dont remember that it works with $msn.decode in the 1st place. remove the decode and everything will be just fine

coz then the script will msg the $nick to room, wich will be automatically decoded when displayed

Edited Feb 24, 2005 8:24 PM by [::X-System::]

on me:*:join:#:hop #