From 65694d185582c9a6558ea8bfee99e56a5721540b Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 3 Sep 2018 16:14:22 +1200 Subject: Configurable modules --- Plugin/Antiflood.pm | 2 -- Plugin/URL_Title.pm | 2 -- 2 files changed, 4 deletions(-) (limited to 'Plugin') diff --git a/Plugin/Antiflood.pm b/Plugin/Antiflood.pm index c133e77..3a79d0d 100644 --- a/Plugin/Antiflood.pm +++ b/Plugin/Antiflood.pm @@ -23,8 +23,6 @@ sub message { my $channel = $where->[0]; my $nick = (split /!/, $who)[0]; - return if ($config{antiflood_on} == 0); - my $now = time(); push @{$lastmsg{$nick}}, $now; diff --git a/Plugin/URL_Title.pm b/Plugin/URL_Title.pm index def7449..1cdf44d 100644 --- a/Plugin/URL_Title.pm +++ b/Plugin/URL_Title.pm @@ -32,8 +32,6 @@ sub message my ($self, $logger, $me, $who, $where, $raw_what, $what, $irc) = @_; my $url; - return if ($config{url_on} == 0); - # Drawn from RFC 3986ยง2 if ($what =~ /(https?:\/\/[a-z0-9\-\._~:\/\?#\[\]@\!\$&'()\*\+,;=%]+)/i) { $url = $1; -- cgit v1.1