im currently using a private connection due to ripping i cant post the connection what im looking for is a findu code that will work on msn i have a alias that "is suppose" to find users on a server (got it from mircscripts.org) but when i /findu err0r it wont show results or anything at all not even a bug lol can u help me? thanks in advance.
alias findu {
if $hget(findu) { .hfree findu }
if -* !iswm $1 {
var %sock = findu. [ $+ [ $r(1,99999) ] ]
var %i = 2
while $ [ $+ [ %i ] ] {
if %i == $0 { return }
%sock = findu. [ $+ [ $r(1,99999) ] ]
sockopen %sock $ [ $+ [ %i ] ] $ [ $+ [ $0 ] ]
sockmark %sock $1 $ [ $+ [ %i ] ]
inc %i
}
}
elseif $1 == -locate {
hadd -m findu locate 1
var %sock = findu. [ $+ [ $r(1,99999) ] ]
var %i = 3
while $ [ $+ [ %i ] ] {
if %i == $0 { return }
%sock = findu. [ $+ [ $r(1,99999) ] ]
sockopen %sock $ [ $+ [ %i ] ] $ [ $+ [ $0 ] ]
sockmark %sock $2 $ [ $+ [ %i ] ]
inc %i
}
}
}
on *:sockopen:findu.*:{
if $sockerr {
echo -s problem connecting to $gettok($sock($sockname).mark,2,32)
return
}
var %s = sockwrite -n $sockname, %sock = $remove($sockname,.)
%s nick %sock
%s user %sock . . %sock
}
on *:sockread:findu.*:{
if $sockerr { echo -s problem connecting to $gettok($sock($sockname).mark,2,32) }
var %s = sockwrite -n $sockname, %sock
sockread %sock
tokenize 32 %sock
if $1 == ping { %s pong $2 }
elseif $2 == 318 {
echo -s $4 not found in any channels on $gettok($sock($sockname).mark,2,32)
sockclose $sockname
}
elseif $2 == 319 {
if $hget(findu) { .hfree findu }
var %i = 5, %chans
while $ [ $+ [ %i ] ] {
%chans = %chans $mid($ifmatch,$pos($ifmatch,$chr(35)))
inc %i
}
echo -s $4 found in %chans on $gettok($sock($sockname).mark,2,32)
if %chans { sockclose $sockname }
}
elseif $2 == 303 {
if $4 == : {
echo -s $gettok($sock($sockname).mark,1,32) not found on $gettok($sock($sockname).mark,2,32)
sockclose $sockname
}
elseif $4 == : $+ $gettok($sock($sockname).mark,1,32) {
if !$hget(findu) {
echo -s $right($4,-1) found on $gettok($sock($sockname).mark,2,32)
sockclose $sockname
}
elseif $hget(findu) { %s WHOIS $gettok($sock($sockname).mark,1,32) }
}
}
elseif $2 == 376 { %s WATCH C $+(+,$gettok($sock($sockname).mark,1,32)) S }
elseif $2 == 421 { %s ISON $gettok($sock($sockname).mark,1,32) }
elseif $2 == 604 {
if !$hget(findu) {
echo -s $4 found on $gettok($sock($sockname).mark,2,32)
sockclose $sockname
}
elseif $hget(findu) { %s WHOIS $gettok($sock($sockname).mark,1,32) }
}
elseif $2 == 607 {
if !$hget(findu) {
echo -s $gettok($sock($sockname).mark,1,32) not found on $gettok($sock($sockname).mark,2,32)
sockclose $sockname
}
}
}
on *:sockclose:findu.*:{ echo -s problem connecting to $gettok($sock($sockname).mark,2,32) }