Ok, this is what I type to connect to my server with the oper hostmasking.
/server -m irc.myserver.com:7149 portpassword:myusername:mypassword
So, to login through the regular server dialogue...
Simply stick in the server & port as normal, then put..
as the password field.
Works fine for me that way