You can first try this command if you are not banned from the channel:
Code:
/msg chanserv clear #channel modes
If you are still not able to join, you can try the commands below according to the error messages in bold:
#channel unable to join channel (invite only)
Code:
/msg chanserv invite #channel
#channel unable to join channel (need correct key)
Code:
/msg chanserv getkey #channel
You will get a message from chanserv similar to the one below:
Code:
-ChanServ- KEY #channel this_is_the_key
You can then join the channel by using the following command:
Code:
/join #channel this_is_the_key
#channel unable to join channel (channel is full)
Code:
/msg chanserv set #channel mlock -l
Note: this command will remove your previous locked modes.
#channel Cannot join channel (SSL is required)
Code:
/msg chanserv set #channel mlock -S
Note: this command will remove your previous locked modes.
#channel unable to join channel (address is banned)
Code:
/msg chanserv unban #channel
This one can get a little tricky if someone in your channel runs a bot/script to replace the ban automatically after chanserv removing it. If the error message persists, you can use the following command to check who is replacing the ban:
Code:
/msg chanserv checkban #channel
You will get a message from chanserv similar to the one below:
Code:
-ChanServ- The ban nick!ident@yourhost.com set by some_nick prevents you from joining #channel.
You can then either choose to talk to some_nick, or remove his op/halfop access.