diff options
| author | 2016-01-12 15:54:14 -0700 | |
|---|---|---|
| committer | 2016-01-12 15:54:14 -0700 | |
| commit | 5805d3c2ba935ffb3d6fa0dc53ba5debe2536eda (patch) | |
| tree | 483968d4e91099f8ef0e8d126e2cbb837a423722 /meta.pl | |
| parent | 3f75fd1d9273dd744e3d0ec98968401db7e3ae1a (diff) | |
Added the ability to do connection debugging in Net::IRC without doing full-blown debugging, and made use of that feature in meta.pl. Also fixed the debugging output of Net::IRC to print to STDERR regardless of what debug method is used
Diffstat (limited to 'meta.pl')
| -rwxr-xr-x | meta.pl | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -96,6 +96,9 @@ sub init { 'pass|p=s' => \$::pass, 'config|c=s' => \$::cset ); + if (-e "debugmode") { + $::debug = 1; + } if ($::cset eq '') { $::cset = 'config-default'; } else { $::cset = "config-$::cset"; } ASM::XML->readXML(); @@ -106,6 +109,9 @@ sub init { $host = ${$::settings->{server}}[rand @{$::settings->{server}}]; ASM::Util->dprint( "Connecting to $host", "startup"); $irc->debug($::debug); + if (-e "debugsock") { + $irc->debugsock(1); + } if (!$::mysql->{disable}) { $::db = ASM::DB->new($::mysql->{db}, $::mysql->{host}, $::mysql->{port}, $::mysql->{user}, $::mysql->{pass}, $::mysql->{table}, @@ -120,6 +126,9 @@ sub init { Password => $::settings->{pass}, Pacing => 0 ); $conn->debug($::debug); + if (-e "debugsock") { + $conn->debugsock(1); + } $::inspector = ASM::Inspect->new(); $::services = ASM::Services->new(); $::commander = ASM::Commander->new(); |
