You can do /debug @debug to see what mIRC sends to the server upon connecting, and just make your script to /sockwrite it. wink