it would be very nice in the next version to include an event or raw something like this:
on *:trying to connect:{
it would give many different possiblities