Fixed use and added a call to expire_logs()

This commit is contained in:
Elijah Perrault committed 2011-01-16 23:17:23 -07:00
1 parent 8c6ad62d7e
commit aae22bd6f1
1 file changed
+11 -8
+11 -8
View File
@@ -11,16 +11,17 @@ use POSIX;
use locale; use locale;
use Mouse; use Mouse;
use IO::Socket; use IO::Socket;
use Async;
use FindBin qw($Bin); use FindBin qw($Bin);
our $Bin = $Bin; our $Bin = $Bin;
unshift(@INC, "$Bin/../src"); BEGIN { unshift(@INC, "$Bin/../src"); }
require API::Std; use API::Std;
require API::Log; use API::Log qw(println alog);
#require DB::Flatfile; #use DB::Flatfile;
require Parser::Config; use Parser::Config;
require Parser::Lang; use Parser::Lang;
#require Parser::IRC; #use Parser::IRC;
#require Sys; #use Sys;
use constant { use constant {
NAME => 'Auto IRC Bot', NAME => 'Auto IRC Bot',
@@ -39,3 +40,5 @@ my @lang = split('_', $LOCALE);
Parser::Lang::parse($lang[0]); Parser::Lang::parse($lang[0]);
undef @lang; undef @lang;
undef @lclv; undef @lclv;
API::Log::expire_logs();