Rewrote chat channel system to be more maintainable