Try this in a script

On *:Connect: /server your.server.com