3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

MessageHistory: recall now ignores ftfy commands

This commit is contained in:
Pragmatic Software 2019-08-15 11:12:23 -07:00
parent 1c88f527bb
commit 936cbb52d8

View File

@ -362,14 +362,14 @@ sub recall_message {
}
$recall_history--;
$message = $self->{database}->recall_message_by_count($account, $recall_channel, $recall_history, '(?:recall|mock)');
$message = $self->{database}->recall_message_by_count($account, $recall_channel, $recall_history, '(?:recall|mock|ftfy)');
if (not defined $message) {
return "No message found at index $recall_history in channel $recall_channel.";
}
} else {
# regex history
$message = $self->{database}->recall_message_by_text($account, $recall_channel, $recall_history, '(?:recall|mock)');
$message = $self->{database}->recall_message_by_text($account, $recall_channel, $recall_history, '(?:recall|mock|ftfy)');
if (not defined $message) {
if (defined $account) {