mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
Plugins/AntiRepeat: dequeue events on unload
This commit is contained in:
parent
3eb35a876f
commit
e6deebc876
@ -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');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user