Configure socks in xchat to point at the host and port ctrlproxy is listening on. If you specified a password in the ctrlproxy configuration, specify it here as well. CtrlProxy will ignore the username that is sent by xchat.