Skip to content
MSN

Connection probs

A TG007 community discussion started by SpAzZ.

Discussion 8 posts
Page 1 of 1
Open
Topic #6178 · 8 published posts · 973 views

Im having problems with a connection im workin on right now. It will open the channel socket, but it doesn't close the listening socket, and it wont open the chat window. Any ideas?

 

 

~~SpAzZ~~

on *:socklisten:sockname:sockaccept blah | sockwrite -n blah :hi 001 $me : | sockclose $sockname

Damnit Gazzy, beat me to it.

on 1:socklisten:pspazz.*:{

sockaccept ospazz. $+ $remove($sockname,pspazz.)

sockclose $sockname

}

thats what i have right now, and it wont close pspazz.(roomname)

im wondering if im gettin a nick error in the ospazz socket

 

on 1:sockread:ospazz.*:{

var %buffer | sockread %buffer | tokenize 32 %buffer | d-bug %buffer

var %sockvar $right($sockname,4)

%buffer = $replace(%buffer,gatekeeper,GateKeeperPassport)

if ($1 == IRCVERS) { sockwrite -n spazz. $+ $remove($sockname,ospazz.) IRCVERS IRC8 MSN-Admin!9.02.0309.2602 }

if ($1 == AUTH) {

sockwrite -n spazz. $+ $remove($sockname,ospazz.) %buffer

}

if ($1 == NICK) { sockclose ospazz.* | close -@ @Chan. $+ %sockvar }

}

 

but i dont know how to fix it lol

 

nvm i got working, i dunno what happened, but sumhow it fixed itself, lol. i didn't do anything to it and then it worked ;s but yea, thanks guys

Edited Mar 10, 2006 11:36 PM by SpAzZ

lol good good

on 1:sockread:mirc:{

var %buffer | sockread %buffer | tokenize 32 %buffer | d-bug %buffer

if ($1 == Join) {

if ($sock($hget(spazz,$2))) { sockwrite -n $ifmatch $1- }

else { sockwrite -n msn.main FINDS $2 | hadd -m spazz chan $2 }

}

elseif ($sock($hget(spazz,$2))) { sockwrite -n $ifmatch $1- }

elseif ($sock($hget(spazz,$comchan($2,1)))) { sockwrite -n $ifmatch $1- }

elseif ($sock(spazz.?#*,0)) { sockwrite -n spazz.?#* $1- | halt }

}

now its not hadd'ing to the spazz hash table under channel, i have to do it manually if i want 2 join a room, but im just glad it joins them now, anybody have any ides, im stumped >.<

I dunno about this but youve got..

 

if ($sock($hget(spazz,$2))) { sockwrite -n $ifmatch $1- }

else { sockwrite -n msn.main FINDS $2 | hadd -m spazz chan $2 }

}

 

so its doing if theres a socket ib the spazz hash tables named $2 channel name join on that socket and then its doing hadd chan ?

yea if there $2 (channel name) is already opened in the hash table, it will just go to that window instead of tryin to join it again, but if theres not, it will hadd to the hash table spazz in chan, that $2 is the chan thats supposed 2 be joined, it goes with my 613 and my 702

 

elseif ($2 == 702) {

echo -a 01Channel not found ¬ Creating...

set %p created-

hadd -m qkey $hget(spazz,chan) %p

echo -s 01 $+ $sockname Joining $hget(spazz,chan) ¬ $time

hadd spazz $+(ticks.,$hget(spazz,chan)) $ticks

var %r = $remove($hget(spazz,chan),%#)

var %t = spazzy~

sockwrite -n $sockname CREATE %createcat %r %t l 9999999 EN-US 1 %p 0

return

}

elseif ($2 == 613) {

echo -at 01 $+ $hget(spazz,chan) has been found, now joining...

if (!$sock(msn.main)) { recon | timerjoin 1 5 join $hget(spazz,chan) }

var %r = $remove($hget(spazz,chan),%#)

sockopen spazz. [ $+ [ $hget(spazz,chan) ] ] $right($4,-1) $5

sockmark spazz. [ $+ [ $hget(spazz,chan) ] ] $right($4,-1)

hadd -m spazzr $hget(spazz,chan) spazz. [ $+ [ $hget(spazz,chan) ] ]

hadd spazz $+(ticks.,$hget(spazz,chan)) $ticks

}