mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Immediate leave UrlTitles if message doesn't contain a URL
This commit is contained in:
parent
c9711e5fa4
commit
6d8b6532b6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user