[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deinit callbacks for fake plugins?



On 30 Oct 2002 17:27:36 -0800
Alexander Hvostov <alex@aoi.dyndns.org> wrote:

> > Yes, I could trap /unload and do that, but like I said before, it's a
> > pretty brutal and inelegant way of doing it.
> 
> I forgot to mention that this would also require me to interpret the
> parameters of the /unload command myself, to determine which plugin to
> unload, if any. If you were to decide to change the syntax of /unload in
> some way (a situation that does not seem entirely implausible), my code
> to do this would break.

Python and Perl both load/unload this way already. If you find the args of
load/unload arn't interesting to java, just return EAT_NONE. For example,
the perl plugin looks for a ".pl" extension to the 1st arg, and only deals
with the command when found.


-- 
Peter Zelezny.
--
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/xchat-discuss/