Change the event API
Add new events for MODE and QUIT commands