its not joining... it says the the socket is active in socklist but it doesnt join and plus it dont say anything i the echo... it just say sock.%#!!test.a 207.68.167.157:6667 tcp active (on: 192.168.2.3 1215)
alias sw return sockwrite -n
alias sock {
sockopen $+(sock.,#) 207.68.167.157 6667
}
on *:sockopen:sock.*:$sw $sockname $+(NICK %bot_nick,$lf,$dll(m_sMSNChat.dll,passport_init,0))
on *:sockread:sock.*:{
var %c | sockread %c | tokenize 32 %c
echo @bot $sockname $+ : %c
if ($1 $3 = AUTH S) {
if ($4 != :OK) $sw $sockname $+($dll(m_sMSNChat.dll,second,0),$dll(m_sMSNChat.dll,encode,$4),$lf,$1-3 :,$+(000000,$base($len(%bot_ticket),10,16),%bot_ticket,000000,$base($len(%bot_profile),10,16),%bot_profile),$lf,PROP $ SUBSCRIBERINFO :,%bot_subinfo,$lf,USER * "*" "127.0.0.1" : $+ $tag $lf join $sock($sockname).mark) | halt )
hadd -m bot ial $4
return
}
if ($1 = ping) $sw $sockname PONG $2
}
And this is sid's tutorial that i followed....
;;;; example passport connection using m_sMSNChat.dll
;;;; must have %ticket, %profile and %subinfo set
;;;; sid
alias passport {
sockopen $+(sMSNChat_passport.,$rnd) 207.68.167.157 6667
}
on *:sockopen:sMSNChat_passport.*:{
if (!$sockerr) {
sockwrite -n $sockname NICK mr_beefy
; we send the initializing passport gkssp
sockwrite -n $sockname $dll(m_sMSNChat.dll,passport_init,0)
}
}
on *:sockread:sMSNChat_passport.*:{
var %r
sockread %r
tokenize 32 %r
echo -s $sockname : %r
if ($1 == AUTH) {
if ($2 == GateKeeperPassport) {
; here we encode the auth string sent to us as $4 and send it back
; no guest gate is required so we do not need to send the encoded gate string
sockwrite -n $sockname $dll(m_sMSNChat.dll,second,0) $+ $dll(m_sMSNChat.dll,encode,$4)
; here we send the ticket and profile in the appropriate hex (or as game likes to call it: hex.decimal - clown) form to auth our passport
sockwrite -n $sockname AUTH 1 S $base($len(%ticket),10,16,8) $+ %ticket $+ $base($len(%profile),10,16,8) $+ %profile
; here we send the SUBINFO to allow us to subscribe
if (%subinfo) sockwrite -n $sockname PROP $ SUBSCRIBERINFO %subinfo
; here we send USER to allow us to connect successfully
sockwrite -n $sockname USER 0 0 0 :mr_beefy
; below here add joining code
; sockwrite -n $sockname JOIN $(%,0) $+ #Programmers iwishthiswastehkey
}
}
}