The timer is to stop the echo going to the room you have just left and is only needed for the PART event.

If you wanted other people to see your event then you'd ditch the timer and change ECHO to MSG # but they will already see that you are coming and going via their own events so I doubt this would be necessary.

As for quitting I just run an ON ERROR:QUIT but I don't know if my version of this is suitable for all IRCds.