mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-26 12:42:49 +01:00
MessageHistory: recall
: fix incorrect whitespace appended to text argument if -t
is not used
This commit is contained in:
parent
13b09be29a
commit
110f019bf2
@ -266,10 +266,12 @@ sub cmd_recall_message {
|
||||
if (not $channel_arg) {
|
||||
$recall_channel = "@$opt_args" if @$opt_args;
|
||||
} else {
|
||||
if (defined $recall_history) {
|
||||
$recall_history .= ' ';
|
||||
if (@$opt_args) {
|
||||
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) {
|
||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
||||
# These are set by the /misc/update_version script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 4623,
|
||||
BUILD_DATE => "2023-02-23",
|
||||
BUILD_REVISION => 4624,
|
||||
BUILD_DATE => "2023-02-24",
|
||||
};
|
||||
|
||||
sub initialize {}
|
||||
|
Loading…
Reference in New Issue
Block a user