I had a discussion with erming about this because I use ZNC. There's actually a /raw command, so you use /raw PASS user:pass to do it, IIRC!
There's also a /quote command.
There's also a /quote command.
Edit: wait, that's for password protected channels, right? I need to pass a password through on server connection otherwise my ircd boots you off and kills the socket :(