Use the tcl/eggdrop command 'control'. ex: set openport [listen 4567 script init:connection] proc init:connection {idx} { # Send back 'connected' so you know you have a connection. putidx $idx "CONNECTED" control $idx init:connection } proc open:connection {idx var} { # do yer thing here ...