I have an idea.. An if pointing to a label directly below it is pointless. Thats like having..

..bleh..
goto end
:end
..bleh..

on *:CONNECT: {
if ($server == %server 2) {
.configbot
if ($me == Samurai) {
/msg $nickserv identify %password
/oper $me %clav %claveoper
}
}

I also assumed that by $nick, you means yourself, thus I used $me, not $nick.