aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-01-03 20:31:19 +1300
committerDavid Phillips <david@sighup.nz>2018-01-03 20:31:19 +1300
commitf2b83d50d8570501a9e71f1da72881d6d96cc949 (patch)
treebe701daada92e2176f97add2fe541e2cf4761f65
parent5203987112cc48849f0f796725f1e0e8b1bb2af6 (diff)
downloadidalius-f2b83d50d8570501a9e71f1da72881d6d96cc949.tar.xz
Fix url_on option
-rw-r--r--plugin/url_title.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/url_title.pm b/plugin/url_title.pm
index 9deaae2..c13104d 100644
--- a/plugin/url_title.pm
+++ b/plugin/url_title.pm
@@ -21,6 +21,8 @@ sub message
my ($self, $logger, $me, $who, $where, $raw_what, $what, $irc) = @_;
my $url;
+ return if ($config{url_on} == 0);
+
if ($what =~ /(https?:\/\/[^ ]+)/i) {
$url = $1;
}