From 49508995df7c72800e85347cd6c11df73ff902ac Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <erdnaxeli@gmail.com>
Date: Mon, 19 Aug 2013 08:28:26 +0200
Subject: [PATCH] wet set modules' conf and we identify to nickserv on
 connection

---
 PlayBot.pl | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/PlayBot.pl b/PlayBot.pl
index c76ffbb..affb21a 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;
-- 
GitLab