This will detect when you get moded +a (SOP/Founder) on networks that have this feature.
Code:
 
on *:rawmode:#: { 
  if (($1 == +a) && ($2 == $me)) {
    commands here
  }
}
 


Those who live by the sword get shot by those who don't.