This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Making a script connecting to a server and stays as a server

Old posts that have not been replied to for several years.
Locked
K
KewlKiddo

Making a script connecting to a server and stays as a server

Post by KewlKiddo »

I'm busy on making a script based on TCL-Services2.0 of poptix for use with an IRCu2.10.11.02. Now I already got it working on Unreal before but I lost that copy. Now I'm doing it for IRCu with P10 and it looks like it doesn't connect; here's the connection-snippet:

proc gnet_connect { } {
global serviceidx servicepass servicename serviceport serviceip serviceinfo
set serviceidx [connect lembeke1.ath.cx 4400]
putdcc $serviceidx "PASS :$servicepass"
putdcc $serviceidx "SERVER $servicename 1 [unixtime] [unixtime] A4]]] J10 :$serviceinfo"
control $serviceidx services_control
utimer 30 check_connect
}

When I do ".tcl [connect lembeke1.ath.cx 4400]" on the partyline it gives a number as output. If poptix himself is (active) member of this forum, it would be nice if he helped me himself, because the connect-engine is based on his :)
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

I don't think he comes to this forum. Have you tried #eggdrop on undernet?

Anyway, that code you posted is fine. What do you mean when you say it doesn't "look" like it connects? Add putlog to the "services_control" function and the "check_connect" function and see. Also try increasing the timeout. Finally you may want to try ip address instead of hostname, since hostname lookup will block.
Locked