Fix bug in channel joining protocol.

Signed-off-by: The Craw <chinese.raundry@gmail.com>