How do you join hidden channels with passwords?

Asked by lyme on 2010-10-10

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:
2010-10-10
Last query:
2010-10-10
Last reply:
2010-10-10
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"));

lyme (lyme) said : #2

That works perfectly, thank you.

lyme (lyme) said : #3

Thanks Noldorin, that solved my question.