When calling /signal with the -n switch, there's no way to determine if /halt|/haltdef was called within the signal
It'd be super handy for modulability if there was an identifier that returns $true|$false dependant on if the last /signal calls event was halted
on ^*:SIGNAL:event_modules_can_handle:{
if ($halted) {
return
}
/dowork
halt
}
alias example {
signal -n event_modules_can_handle
if ($signalhalted) {
halt
}
/do other work
}
The use case: I'm working on a simple HTTP daemon and want it to be extendable via other scripts. To make the interface "easy" for such scripts I want to emit signal evens that can be halted. in such a case the caller should end further processing