3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 15:29:32 +01:00

MessageHistory: recall: fix incorrect whitespace appended to text argument if -t is not used

This commit is contained in:
Pragmatic Software 2023-02-24 20:50:19 -08:00
parent 13b09be29a
commit 110f019bf2
2 changed files with 7 additions and 5 deletions

View File

@ -266,10 +266,12 @@ sub cmd_recall_message {
if (not $channel_arg) { if (not $channel_arg) {
$recall_channel = "@$opt_args" if @$opt_args; $recall_channel = "@$opt_args" if @$opt_args;
} else { } else {
if (defined $recall_history) { if (@$opt_args) {
$recall_history .= ' '; if (defined $recall_history) {
$recall_history .= ' ';
}
$recall_history .= "@$opt_args";
} }
$recall_history .= "@$opt_args" if @$opt_args;
} }
if (defined $recall_text and not defined $recall_history) { if (defined $recall_text and not defined $recall_history) {

View File

@ -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 => 4623, BUILD_REVISION => 4624,
BUILD_DATE => "2023-02-23", BUILD_DATE => "2023-02-24",
}; };
sub initialize {} sub initialize {}