Re: 'Private' messages in Exodus

"Peter Millard" <me-STcBuFROdrv2eFz/[email protected]> Tue, 3 Feb 2004 15:36:58 -0700
Newsgroups gmane.network.jabber.exodus.devel
Message-ID <024d01c3eaa6$446a6540$e201020a@pmillard2k>
Fred O'Leary wrote:
> Wouldn't it be easier, both for plugin developers as well as the core, to
> just implement the /pre option as follows:
> 1 ) All plugins that register for "pre" messages will get them.
> 2 ) If any of the plugin's return TRUE then the packet doesn't reach the
> core GUI

Not really :)

The current dispatching model ensures that the packet goes to all listeners for
that signal. Return values don't really exist. Adding the ability for a packet
to be "handled" would be a pretty significant refactoring effort.

pgm.