mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-23 10:34:52 +01:00
No URL titles for unidentified users
This commit is contained in:
parent
4324fe5db3
commit
147c7337d8
@ -54,6 +54,14 @@ sub show_url_titles {
|
||||
}
|
||||
}
|
||||
|
||||
# no titles for unidentified users in +z channels
|
||||
my $chanmodes = $self->{pbot}->{channels}->get_meta($channel, 'MODE');
|
||||
if (defined $chanmodes and $chanmodes =~ m/z/) {
|
||||
my $account = $self->{pbot}->{messagehistory}->{database}->get_message_account($nick, $user, $host);
|
||||
my $nickserv = $self->{pbot}->{messagehistory}->{database}->get_current_nickserv_account($account);
|
||||
return 0 if not defined $nickserv or not length $nickserv;
|
||||
}
|
||||
|
||||
if($self->{pbot}->{registry}->get_value('general', 'show_url_titles')
|
||||
and not $self->{pbot}->{registry}->get_value($channel, 'no_url_titles')
|
||||
and not grep { $channel =~ /$_/i } $self->{pbot}->{registry}->get_value('general', 'show_url_titles_ignore_channels')
|
||||
|
Loading…
Reference in New Issue
Block a user