How do you join hidden channels with passwords?

Asked by lyme

I have a channel with a password I'd like to join, however simply tacking the password on the end of the channel name ie "#channel password" results in a 479 illegal channel name error.
Is there something other than ircClient.Channels.Join(joinString) that should be used?

Question information

Language:
English Edit question
Status:
Solved
For:
IRC.NET Edit question
Assignee:
Alexander Regueiro Edit question
Solved by:
Alexander Regueiro
Solved:
Last query:
Last reply:
Revision history for this message
Best Alexander Regueiro (alexreg) said :
#1

The following overload is probably what you want:

void Join(params Tuple<string, string>[] channels)

The first item of the tuple is the channel name and the second is the channel key (password). You can use it as such:

ircClient.Channels.Join(Tuple.Create("#channel", "channel_key"));

Revision history for this message
lyme (lyme) said :
#2

That works perfectly, thank you.

Revision history for this message
lyme (lyme) said :
#3

Thanks Noldorin, that solved my question.