3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-02 00:49:26 +01:00

Plugins/AntiRepeat: dequeue events on unload

This commit is contained in:
Pragmatic Software 2020-03-07 18:43:07 -08:00
parent 3eb35a876f
commit e6deebc876

View File

@ -30,7 +30,7 @@ sub initialize {
sub unload { sub unload {
my $self = shift; my $self = shift;
$self->{pbot}->{timer}->unregister('antirepeat'); $self->{pbot}->{timer}->dequeue_event('antirepeat .*');
$self->{pbot}->{event_dispatcher}->remove_handler('irc.public'); $self->{pbot}->{event_dispatcher}->remove_handler('irc.public');
$self->{pbot}->{event_dispatcher}->remove_handler('irc.caction'); $self->{pbot}->{event_dispatcher}->remove_handler('irc.caction');
} }