mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-29 07:19:23 +01:00
Factoids: fix factrem
/forget
Somehow I missed the `remove()` subroutine when converting to subroutine signatures...
This commit is contained in:
parent
2c36f624b2
commit
329c8db33c
@ -98,8 +98,7 @@ sub add($self, $type, $channel, $owner, $trigger, $action, $dont_save = 0) {
|
|||||||
$self->{storage}->add($channel, $trigger, $data, $dont_save);
|
$self->{storage}->add($channel, $trigger, $data, $dont_save);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub remove($self) {
|
sub remove($self, $channel, $trigger) {
|
||||||
my ($channel, $trigger) = @_;
|
|
||||||
$channel = '.*' if $channel !~ /^#/;
|
$channel = '.*' if $channel !~ /^#/;
|
||||||
return $self->{storage}->remove($channel, $trigger);
|
return $self->{storage}->remove($channel, $trigger);
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4660,
|
BUILD_REVISION => 4665,
|
||||||
BUILD_DATE => "2023-05-05",
|
BUILD_DATE => "2023-05-07",
|
||||||
};
|
};
|
||||||
|
|
||||||
sub initialize {}
|
sub initialize {}
|
||||||
|
Loading…
Reference in New Issue
Block a user