3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

IRCHandlers: give send_who() a registry toggle

This commit is contained in:
Pragmatic Software 2020-01-22 16:51:14 -08:00
parent 5e54712a7b
commit a6040609b9

View File

@ -140,7 +140,8 @@ sub on_motd {
sub on_self_join {
my ($self, $event_type, $event) = @_;
$self->send_who($event->{channel});
my $send_who = $self->{pbot}->{registry}->get_value('general', 'send_who_on_join') // 1;
$self->send_who($event->{channel}) if $send_who;
return 0;
}