fixed the joinchan error.
there was no function (my fault)