diff --git a/PBot/Plugins/UrlTitles.pm b/PBot/Plugins/UrlTitles.pm index 4ed3aaa8..b74c55fe 100644 --- a/PBot/Plugins/UrlTitles.pm +++ b/PBot/Plugins/UrlTitles.pm @@ -41,6 +41,8 @@ sub show_url_titles { my ($nick, $user, $host) = ($event->{event}->nick, $event->{event}->user, $event->{event}->host); my $msg = $event->{event}->{args}[0]; + return 0 if not $msg =~ m/https?:\/\/[^\s]/; + if ($self->{pbot}->{ignorelist}->check_ignore($nick, $user, $host, $channel)) { my $admin = $self->{pbot}->{admins}->loggedin($channel, "$nick!$user\@$host"); if (!defined $admin || $admin->{level} < 10) {