summaryrefslogtreecommitdiffstats
path: root/meta.pl
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2007-06-28 23:48:48 +0000
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2007-06-28 23:48:48 +0000
commit6907da0a5da3d45a91c3ac4893e5b890200b27eb (patch)
tree5a61df15a30b6d0aefa6c6e72e7eab2d8f03de1f /meta.pl
parent638d9eae9e63755e26f9843985597e6f1c7c5f8e (diff)
modularized stuff, fixed alert logic, simplified stuff, updated TODO
Diffstat (limited to 'meta.pl')
-rwxr-xr-xmeta.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta.pl b/meta.pl
index f0e3593..79f0f90 100755
--- a/meta.pl
+++ b/meta.pl
@@ -8,7 +8,6 @@ use Net::IRC;
use Data::Dumper;
use IO::All;
use Getopt::Long;
-use POSIX qw(strftime);
@::eline=();
$::pass = '';
@@ -42,17 +41,22 @@ sub init {
'config|c:s' => \$::cset
);
readXML();
+ $::log = ASM::Log->new($::settings->{log});
$::pass = $::settings->{pass} if $::pass eq '';
$host = ${$::settings->{server}}[rand @{$::settings->{server}}];
print "Connecting to $host\n";
$irc->debug($debug);
- sql_connect();
+ $::db = ASM::DB->new($::mysql->{db}, $::mysql->{host}, $::mysql->{port}, $::mysql->{user}, $::mysql->{pass}, $::mysql->{table});
+# $::dbh = DBI->connect("DBI:mysql:database=$::mysql->{db};host=$::mysql->{host};port=$::mysql->{port}",
+# $::mysql->{user}, $::mysql->{pass});
+#
+# sql_connect();
$conn = $irc->newconn( Server => $host,
Port => $::settings->{port} || '6667',
Nick => $::settings->{nick},
Ircname => $::settings->{realname},
Username => $::settings->{username},
- Password => $::pass,
+ Password => $::settings->{pass},
Pacing => 1 );
$conn->debug($debug);
registerHandlers($conn);