Fixes, command additions, and join and leave handlers.