This snippet allows you to replace the command //scid -a . The purpose is to first check that the server connection ID is valid before executing the on that specified ID.
General usage would be //sscid amsg hi
That is an example, but it can be used for multi-server away messages, mp3 displays and nick changes :). Fully tested and working, have fun
alias sscid {
var %scid = 0
while (%scid < $scid(0).server) {
inc %scid 1
if ($scon(%scid).server != $null) {
scon %scid $1-
}
}
}