By using callback functions in the process of mIRC adding a new callback that can be used to register event handlers (similar to event handlers in scripts) would be possible as well.