mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-23 02:24:25 +01:00
Registerable: add unregister_all() subroutine
This commit is contained in:
parent
edf735f88a
commit
ecd1e4dc86
@ -62,4 +62,9 @@ sub unregister {
|
||||
@{ $self->{handlers} } = grep { $_ != $ref } @{ $self->{handlers} };
|
||||
}
|
||||
|
||||
sub unregister_all {
|
||||
my ($self) = @_;
|
||||
$self->{handlers} = [];
|
||||
}
|
||||
|
||||
1;
|
||||
|
Loading…
Reference in New Issue
Block a user