Added in 1.9.6

$exiting

Returns 1 if AdiIRC is exiting, 2 if AdiIRC is restarting, otherwise 0.