diff options
| author | 2012-08-19 03:23:35 +0000 | |
|---|---|---|
| committer | 2012-08-19 03:23:35 +0000 | |
| commit | 96a28d32af3d3aaa8292cbb7a498d2fbdca32546 (patch) | |
| tree | 4ed4dfe077460f892c0a111a1862852724dc1de1 /modules/classes.pl | |
| parent | fae3a46e8813b4804a6c23f6ee397fd8c8ede0bc (diff) | |
Utilize debug printer, remove dead code, eliminate a warning in mode tracking, handle joining channels better (less warnings), ignore chanserv entrymsgs
Diffstat (limited to 'modules/classes.pl')
| -rw-r--r-- | modules/classes.pl | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/modules/classes.pl b/modules/classes.pl index c8dcc54..f943976 100644 --- a/modules/classes.pl +++ b/modules/classes.pl @@ -108,23 +108,19 @@ sub dnsbl # but I'm getting rid of it so it can detect cgi:irc shit return 0; if (defined $rev) { - print "Querying $rev$chk->{content}\n" if $::debugx{dnsbl}; + ASM::Util->dprint("Querying $rev$chk->{content}", "dnsbl"); my $iaddr = gethostbyname( "$rev$chk->{content}" ); my @dnsbl = unpack( 'C4', $iaddr ) if defined $iaddr; my $strip; if (@dnsbl) { $strip = sprintf("%s.%s.%s.%s", @dnsbl); - if ($::debug) { - print "found host (rev $rev) in $chk->{content} - $strip\n" unless ($strip eq '216.234.246.150'); - } + ASM::Util->dprint("found host (rev $rev) in $chk->{content} - $strip", 'dnsbl') unless ($strip eq '216.234.246.150'); } if ((@dnsbl) && (defined($::dnsbl->{query}->{$chk->{content}}->{response}->{$strip}))) { $::lastlookup=$::dnsbl->{query}->{$chk->{content}}->{response}->{$strip}->{content}; - if ($::debug) { - print "chk->content: $chk->{content}\n"; - print "strip: $strip\n"; - print "result: " . $::dnsbl->{query}->{$chk->{content}}->{response}->{$strip}->{content} . "\n"; - } + ASM::Util->dprint("chk->content: $chk->{content}", 'dnsbl'); + ASM::Util->dprint("strip: $strip", 'dnsbl'); + ASM::Util->dprint("result: " . $::dnsbl->{query}->{$chk->{content}}->{response}->{$strip}->{content}, 'dnsbl'); $::sn{lc $event->{nick}}->{dnsbl} = 1; # lol really icky hax return $::dnsbl->{query}->{$chk->{content}}->{response}->{$strip}->{content}; |
