diff options
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/antiflood.pm | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/antiflood.pm b/plugin/antiflood.pm index a4fe09c..7eb5b7f 100644 --- a/plugin/antiflood.pm +++ b/plugin/antiflood.pm @@ -24,6 +24,8 @@ sub message {  	my $channel = $where->[0];  	my $nick = (split /!/, $who)[0]; +	return if ($config{antiflood_on} == 0); +  	my $now = time();  	push @{$lastmsg{$nick}}, $now;  | 
