Code:
on *:open:?:{
  if $network == networkA { msg $nick smart reply }
  if $network == networkB { msg $nick witty comment }
}