Quote:
If you receive any server notices before having to use the /quote command, you might try the ON SNOTICE event. /help ON SNOTICE.

That's it, thank you. When logging in, my shell account prints "Got your hostname" to the status window. After that I had to enter my password. I put the line "on 1:SNOTICE:*Got your hostname*:/quote pass ********" in the remote section, and it works fine. :-)