diff options
| author | 2016-01-14 23:39:31 -0700 | |
|---|---|---|
| committer | 2016-01-14 23:39:31 -0700 | |
| commit | 145cc46947c03ae878f0f21d7621a4ee80633e4e (patch) | |
| tree | 658ab990865d8f3bef996e7fb5efe25a11d66a74 /meta.pl | |
| parent | 9ca88a753c7c1831ebfa17ab9b7e356a131874d1 (diff) | |
Register inspect hooks inside the inspect function, no longer inspect topic changes, possibly break quit inspection, and move the DNS resolver to a global var
Diffstat (limited to 'meta.pl')
| -rwxr-xr-x | meta.pl | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -17,6 +17,7 @@ use feature qw(say); use HTTP::Async; use Carp; use Tie::CPHash; +use Net::DNS::Async; use ASM::Util; use ASM::XML; @@ -66,7 +67,7 @@ $::settingschanged = 0; "statsp" => MAGENTA, "ctcp" => 0, #RED, "logger" => 0, - "dns" => 0 + "dns" => MAGENTA ); %::dsock = (); %::spy = (); @@ -108,6 +109,7 @@ sub init { ASM::XML->readXML(); $::pass = $::settings->{pass} if $::pass eq ''; $::async = HTTP::Async->new(); + $::dns = Net::DNS::Async->new(QueueSize => 5000, Retries => 3); $host = ${$::settings->{server}}[rand @{$::settings->{server}}]; ASM::Util->dprint( "Connecting to $host", "startup"); $irc->debug($::debug); @@ -132,8 +134,8 @@ sub init { $conn->debugsock(1); } - $::event = ASM::Event->new($conn, $::inspector); - $::inspector = ASM::Inspect->new(); + ASM::Event->new($conn); + ASM::Inspect->new($conn); $::log = ASM::Log->new($conn); ASM::Commander->new($conn); ASM::Services->new($conn); |
