diff --git a/PlayBot.pl b/PlayBot.pl
index c76ffbb7cfe7fa5a87c124d57300bea026b146d2..affb21aa9af9c65e77286c534090dfafdcfeffbe 100755
--- a/PlayBot.pl
+++ b/PlayBot.pl
@@ -164,6 +164,8 @@ sub on_connect
 {
 	my $kernel = $_[ KERNEL ];
 
+    setConf();
+    $irc->yield(privmsg => "NickServ" => "identify ".$conf->{'nickserv_pwd'}) unless ($debug);
 	$log->info('connected');
 
 	foreach (@channels) {
@@ -287,11 +289,6 @@ sub on_speak
     }	
 }
 
-
-setConf();
-
-$irc->yield(privmsg => "NickServ" => "identify ".$conf->{'nickserv_pwd'}) unless ($debug);
-
 # Boucle des events
 $poe_kernel->run();
 exit 0;