Looking at the on close event, it doesn't work for channels...
Note: These events do not trigger for any other types of windows. Channel windows are handled by the on JOIN/PART events.
Like many people I have the "Keep channels open" option ticked.
This means, when I'm kicked/banned from a channel, the window remains open.
I'd like to trigger an event when I close the window, because I'm already parted by being kicked.
Closing the window, closes the window, where as part parts. You can't tie to two together.
Perhaps this is actually a bug... Perhaps On Close needs support for channels.
Should I raise this as a bug?