You could use on RAWMODE
/help on rawmode
Im not sure what character does your network use for SOPs (and not sure how to make that script), so its hard to one, but should be something like this:
on *:RAWMODE:#: {
if ([color:red]+a[/color] isin $1-) { commands }
}
Hope this helps
Zyzzy.