diff options
author | David Phillips <david@sighup.nz> | 2018-01-03 20:31:19 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-01-03 20:31:19 +1300 |
commit | f2b83d50d8570501a9e71f1da72881d6d96cc949 (patch) | |
tree | be701daada92e2176f97add2fe541e2cf4761f65 /plugin | |
parent | 5203987112cc48849f0f796725f1e0e8b1bb2af6 (diff) | |
download | idalius-f2b83d50d8570501a9e71f1da72881d6d96cc949.tar.xz |
Fix url_on option
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/url_title.pm | 2 |
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; } |