You wont be able to get the max nicklength until after your connected, but whats wrong with using something like

raw 433:*:{ if ($2) { nick $+($2,_) } }

Eamonn.