aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-01-03 20:32:56 +1300
committerDavid Phillips <david@sighup.nz>2018-01-03 20:32:56 +1300
commit1e004d22dbccdfff4d8cce8a4c12bd0fe6a49a81 (patch)
treebb0d6dbc68bc87d7fc62150866578cef232bf1dd /plugin
parentf2b83d50d8570501a9e71f1da72881d6d96cc949 (diff)
downloadidalius-1e004d22dbccdfff4d8cce8a4c12bd0fe6a49a81.tar.xz
Add option to disable antiflood
Diffstat (limited to 'plugin')
-rw-r--r--plugin/antiflood.pm2
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;