You need to fix your spacing and { }:
n1=on *:start:{
n2= server irc.efnet.nl
n3=}
n4=on *:connect:{
n5= if ( $network == EFNet ) {
n6= join #duh
n7= }
n8=}
The { should be on the same line as the on connect. Same for the if statement.
As for spacing, the ( shouldn't be touching the if. if ( if(
Hope this helps.