Remove redundant code from update_format_identify, plus minor changes
Remove empty if{} clause
Move updating of formats into separate subroutine, and add handlers for notices, actions and other ctcps