Looking for a script please that will tempshun a nick on connect for a few seconds that matches a set pattern before unshunning just to help us out with some spammers trying to get on

the connect message looks like

[11:20] <ChanServ> USERS: Monica694!~Mibbit@xx.xx.xx.xx (990693CA.9FC5C4F3.F9E92EF2.IP) (http://www.mibbit.com) connected to the network (our network is here)
11:14] <ChanServ> USERS: Stephanie800!Mibbit@xx.xx.xx.xx (555560E4.5124B86E.EB45475D.IP) (http://www.mibbit.com) connected to the network (our network is here)

want the script to act on the 3 numbers and first letter before the ! eg.. the a694 or e800 ... whatever the last letter and 3 numbers are.. no more numbers.. its always 3 numbers, then the ! on this catch

When the user connects i would like a tempshun placed and run for 20secs before it is removed

I'm mirc 7.63 and its unrealircd 5.2.0. We have a working spamfilter already that is set correctly and working.. we're just looking to go a bit more proactive with the deterrent