I would like to see On CLOSE work for #channels too. On PART is inappropriate for cleanup code in circomstances when you /HOP a channel, because the channel remains open. This would also help identify if you /PART (or are PARTED by an OPER) and the channel remains open (hopefully a future feature). On CLOSE would also trigger when you close a window while you're disconnected.
On *:CLOSE:#:
This triggers when a channel window is closed.
- Raccoon