diff options
| author | 2007-07-04 02:00:24 +0000 | |
|---|---|---|
| committer | 2007-07-04 02:00:24 +0000 | |
| commit | 2e39d5b2b95c2e705fd962c9752070f816c1dfec (patch) | |
| tree | 64d6fde2a4cd488d7add12ca4897daee216777ae /meta.pl | |
| parent | 6fe4d3ecbdc3196c7c62b9b7e00d5063bd0dbee9 (diff) | |
critical bug fix + code optimizations
Diffstat (limited to 'meta.pl')
| -rwxr-xr-x | meta.pl | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -16,6 +16,7 @@ use Getopt::Long; %::eline=(); $::pass = ''; +@::string_blacklist=(); BEGIN { my @modules = qw/Xml Util Inspect Event Services Log Command Classes Actions Mysql OperQueue/; @@ -32,6 +33,7 @@ sub init { 'config|c:s' => \$::cset ); ASM::XML->readXML(); + mkdir($::settings->{log}->{dir}); $::log = ASM::Log->new($::settings->{log}); $::pass = $::settings->{pass} if $::pass eq ''; $host = ${$::settings->{server}}[rand @{$::settings->{server}}]; @@ -57,6 +59,9 @@ sub init { foreach my $item (@eline) { $::eline{lc $item} = 1; } + my @strbl = io('string_blacklist.txt')->getlines; + chomp @strbl; + @::string_blacklist = @strbl; $irc->start(); } |
