Fix Cient.join: when user specify a password

Hello,

When you try to join a channel with a password it does work, but doesn't enter the event because of the space "#mychannel mypassword".

I fixed that byt only taking the first element of the string as event name.

Thank you,

Peter