MessageHistory: recall is now aware of mock

This commit is contained in:
Pragmatic Software 2019-05-04 14:52:25 -07:00
parent 6d08967780
commit 0538a37678
1 changed files with 2 additions and 2 deletions

View File

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