You would need to do (depending on your services/network),

On *:Join:[color:red]#:{ whois $nick }[/color]

Which would 'On Join', whois the nickname to check if it is identified..

Then use a RAW event to catch if the user is 'identified'.. i.e.

raw 307:*identified*:{ [color:red]your commands }[/color]

Baring in mind you also need to store the channel to be able to know where to kick them from, failing that, use $comchan($nick,N).

If however your IRCd software does not produce a 'raw 307' you will need to NOTICE nickserv hopefully if they support an 'ACC' command, then parse its return using ON NOTICE.

Eamonn Burns.
PasteBin / Mekaneka