From 329c8db33c84bd974d8156ef00729740a4db2955 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 7 May 2023 13:47:25 -0700 Subject: [PATCH] Factoids: fix `factrem`/`forget` Somehow I missed the `remove()` subroutine when converting to subroutine signatures... --- lib/PBot/Core/Factoids/Data.pm | 3 +-- lib/PBot/VERSION.pm | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/PBot/Core/Factoids/Data.pm b/lib/PBot/Core/Factoids/Data.pm index 213ddd37..d4a42ee3 100644 --- a/lib/PBot/Core/Factoids/Data.pm +++ b/lib/PBot/Core/Factoids/Data.pm @@ -98,8 +98,7 @@ sub add($self, $type, $channel, $owner, $trigger, $action, $dont_save = 0) { $self->{storage}->add($channel, $trigger, $data, $dont_save); } -sub remove($self) { - my ($channel, $trigger) = @_; +sub remove($self, $channel, $trigger) { $channel = '.*' if $channel !~ /^#/; return $self->{storage}->remove($channel, $trigger); } diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 65ed79ee..1007da5e 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,8 +25,8 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4660, - BUILD_DATE => "2023-05-05", + BUILD_REVISION => 4665, + BUILD_DATE => "2023-05-07", }; sub initialize {}