mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
BanList: use save queue to prevent repeated saves when handling multiple bans
This commit is contained in:
parent
506ebf13c6
commit
4166da140e
@ -43,13 +43,15 @@ sub initialize {
|
|||||||
$self->{banlist} = PBot::DualIndexHashObject->new(
|
$self->{banlist} = PBot::DualIndexHashObject->new(
|
||||||
pbot => $self->{pbot},
|
pbot => $self->{pbot},
|
||||||
name => 'Ban List',
|
name => 'Ban List',
|
||||||
filename => $self->{pbot}->{registry}->get_value('general', 'data_dir') . '/banlist'
|
filename => $self->{pbot}->{registry}->get_value('general', 'data_dir') . '/banlist',
|
||||||
|
save_queue_timeout => 5,
|
||||||
);
|
);
|
||||||
|
|
||||||
$self->{quietlist} = PBot::DualIndexHashObject->new(
|
$self->{quietlist} = PBot::DualIndexHashObject->new(
|
||||||
pbot => $self->{pbot},
|
pbot => $self->{pbot},
|
||||||
name => 'Quiet List',
|
name => 'Quiet List',
|
||||||
filename => $self->{pbot}->{registry}->get_value('general', 'data_dir') . '/quietlist'
|
filename => $self->{pbot}->{registry}->get_value('general', 'data_dir') . '/quietlist',
|
||||||
|
save_queue_timeout => 5,
|
||||||
);
|
);
|
||||||
|
|
||||||
$self->{banlist}->load;
|
$self->{banlist}->load;
|
||||||
|
Loading…
Reference in New Issue
Block a user