[TSP], 2007-10-21: This is a very simple script to help you get started with connecting to the [IRC], or actually any socket based connection. set socket [socket -async irc.example.net 6667] proc recv {socket} { gets $socket line # process $line.. } fconfigure $socket -buffering line -translation crlf fileevent $socket readable "recv $socket" Be sure to change "irc.example.net" (and "6667" if appropriate). recv will be called when the client gets a line of data from the server. ---- See also [picoIRC 0.2] or [minibot] ____ | [Category Example] | [Category Internet] |