mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
IRCHandlers: give send_who() a registry toggle
This commit is contained in:
parent
5e54712a7b
commit
a6040609b9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user