try using:
Code:
 /server irc.afternet.org  YourUsername YourPassword  

insure their's a space between the User Name and the Password.