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

Re: unloading a single scrip/autoterminate it?



At the moment it's not posible to unload a single script, but a workaround 
can be made by using a variable and an if:

sub my_handler{
	return 0 if $condition;
}

When you need to "unload" or disable the script you just set $condition
to anything but 0 and no function will be executed.

If after some time you want to reenable just set it to 0, so the
function's body will be executed.



-- 
Usuario de Linux # 134651
$foo=q;\\;.q;W+|\d+;;;$_=q:q*<du+dq24nE n/S;r-<"`Us":;
y>"-}>#-~>;s;$foo;;g;$_=join q; ;,unpack q,a7 x0 a5,,$_;
print q...reverse;
--
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/xchat-discuss/