mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-29 15:29:32 +01:00
Remove debugging print statements from AntiFlood.pm
This commit is contained in:
parent
96be537c39
commit
8a5c7a99c2
@ -54,16 +54,12 @@ sub get_flood_account {
|
||||
|
||||
foreach my $n (keys %{ $self->{message_history} }) {
|
||||
my $userhost = "$user\@$host";
|
||||
print "cmp ${ $self->{message_history} }{$n}{hostmask} vs $userhost\n";
|
||||
if(${ $self->{message_history} }{$n}{hostmask} =~ /\Q$userhost\E/i) {
|
||||
$self->{pbot}->logger->log("Using existing hostmask found with nick $n\n");
|
||||
print "return $n\n";
|
||||
return $n;
|
||||
}
|
||||
print "fail\n";
|
||||
}
|
||||
|
||||
print "undef\n";
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 149,
|
||||
BUILD_REVISION => 150,
|
||||
BUILD_DATE => "2010-06-05",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user