I assume you have some kind of on join check to check if the channel number is larger than the peak? Simply add the following line in the raw event for /names

if ($nick([color:blue]#channelname[/color],0) > $gettok([ % $+ [ max_user $+ [ $chan ] ] ],1,32)) .notice $nick whatever-goes-here

Check the exact syntax for the raw event to see which token holds the channelname.

DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius