nevermind, I answered my own question through experimentation.

on !@:text:*:#: {......}

triggers the event either when I am opped, mode +a or both. My thinking was that the !@ would only cause it to trigger when I was not opped but that doesn't appear to be the case.