mIRC Homepage
Posted By: LEET raw messages vs. multi server - 08/12/03 02:57 PM
i'm having a little problem with my multi server script.
i'm just doing simple things with an away system and i was wondering how to distinguish cid's from raw server msgs.

at the moment i'm connected to 2 different servers, i send '.raw away etc' to each server using //scid connectid .raw away etc.

when i recieved raw 306, i echo $cid and its always the id of my first connection. is there another identifier i should be using to return the specific id number? i also checked the scid loop to see if the commands were being sent properly and they were echoed ...

scid 1 .raw AWAY away
scid 8 .raw AWAY away

i dunno what the probem is, somebody help me! shocked
Posted By: KingTomato Re: raw messages vs. multi server - 08/12/03 03:53 PM
Are you looking for $activecid?
Posted By: LEET Re: raw messages vs. multi server - 08/12/03 03:54 PM
i tried $activecid as well but like it still returns the same cid shocked
Posted By: KingTomato Re: raw messages vs. multi server - 08/12/03 03:57 PM
cid is always going to give you the id of the connection your executing it on. If you want to associtate, say, a server with its id, loop through $scon or $scid.
Posted By: LEET Re: raw messages vs. multi server - 08/12/03 04:00 PM
yea i'll just have to script around it ;/
Posted By: Doqnach Re: raw messages vs. multi server - 08/12/03 06:28 PM
raw 306:*: echo -a $cid

that gives you only 1 cid?

who not use /scid -a .raw AWAY etc.

btw ?
Posted By: LEET Re: raw messages vs. multi server - 09/12/03 04:27 PM
i'm running each server on 127.0.0.1 connected to the specific servers through a proxy of myself by sockets. whatever raw i get returns the 'active' cid whenever. i'm gonna script around the problem i have because scid doesn't work properly for me. if i connected to servers normally then i wouldn't have this problem. but unfortunately i have now because of the way i dodgily connect to servers.

i didn't use scid -a because i set individual variables so i just did a while loop through the connections to do the additional commands. shocked
Posted By: LEET Re: raw messages vs. multi server - 09/12/03 08:38 PM
problem sorted. just scripting error... i could explain it but nobody's interested! shocked
© mIRC Discussion Forums