Nice, this is useful. I adapted this to a /gecho command for an alert system but had to add a $cid check.
alias gecho {
set %scid $scid(0)
while ( %scid > 0 ) {
if ($network != $null && $cid !isin %gecho) { set %gecho $addtok(%gecho,$cid,32) | scon %scid echo 4 -a Alert Stuff Here! }
dec %scid
}
unset %gecho
}
Watch channels for a word or phrase and have it sent to a @Window or echo into your active channel. Main sends each term to a window named with the search term. Alternate method sends all of the search terms to a single @Window. Once loaded just right click in a channel window to change/view settings found under ChanWatch.