aboutsummaryrefslogtreecommitdiff
path: root/Plugin
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-09-03 16:14:22 +1200
committerDavid Phillips <david@sighup.nz>2018-09-03 16:14:22 +1200
commit65694d185582c9a6558ea8bfee99e56a5721540b (patch)
tree9d6d3da4dd8eb15daff1c645b02cd84d123548e8 /Plugin
parent14c1d55b97d61de7eb48acd4a5b745e2ba5e977a (diff)
downloadidalius-65694d185582c9a6558ea8bfee99e56a5721540b.tar.xz
Configurable modules
Diffstat (limited to 'Plugin')
-rw-r--r--Plugin/Antiflood.pm2
-rw-r--r--Plugin/URL_Title.pm2
2 files changed, 0 insertions, 4 deletions
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;