Fixed login on some servers.
Fixed channel joining when the nickname is not registered.
Implemented a basic chat log.