Maybe you can use something like this if I understand your question clear:
Code:
on *:text:USERS*:#services:{
  if ($regex($address,/(mibbit)/i)) {
    .msg #opers $removecs($1,USERS:) has connected from a mibbit connection.
  }
}

Maybe a start for you.