I messed up the example slightly, and since I can't edit the OP, here is a fixed simplified version

Code
;; received event:
;;   @user-channel-flags=ov :User!ident@addr PRIVMSG #chan :!command

on ^*:TEXT:*:#chan:{
  if (o isincs $msgtags(user-channel-flags).key) {
    spoofmode +o
  }
}

on *:TEXT:!command:#chan:{
  if ($nick isop #chan) {
    ;; this would be valid
  }
}


I am SReject
My Stuff