summaryrefslogtreecommitdiffstats
path: root/meta.pl
diff options
context:
space:
mode:
Diffstat (limited to 'meta.pl')
-rwxr-xr-xmeta.pl26
1 files changed, 15 insertions, 11 deletions
diff --git a/meta.pl b/meta.pl
index 00045a6..2e651d6 100755
--- a/meta.pl
+++ b/meta.pl
@@ -1,12 +1,11 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
-use lib '/home/icxcnika/AntiSpamMeta';
-
-#use Devel::Profiler package_filter => sub { return 0 if $_[0] =~ /^XML::Simple/; return 1; };
+use strict;
+use warnings;
+use FindBin;
+use lib "$FindBin::Bin/lib";;
-use warnings;
-use strict;
use Net::IRC;
use Data::Dumper;
use IO::All;
@@ -18,6 +17,16 @@ use feature qw(say);
use HTTP::Async;
use Carp;
+use ASM::Util;
+use ASM::XML;
+use ASM::Inspect;
+use ASM::Event;
+use ASM::Services;
+use ASM::Log;
+use ASM::Commander;
+use ASM::Classes;
+use ASM::DB;
+
$Data::Dumper::Useqq=1;
$::pass = '';
@@ -72,11 +81,6 @@ sub alarmdeath
$SIG{ALRM} = \&alarmdeath;
alarm 300;
-BEGIN {
-my @modules = qw/Util Xml Inspect Event Services Log Command Classes Mysql/;
-require 'modules/' . lc $_ . '.pl' foreach @modules;
-}
-
sub init {
my ( $conn, $host );
my $irc = new Net::IRC;