mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-02 00:49:26 +01:00
MessageHistory: recall now ignores fix
commands
This commit is contained in:
parent
ba65834b29
commit
848536f183
@ -362,14 +362,14 @@ sub recall_message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$recall_history--;
|
$recall_history--;
|
||||||
$message = $self->{database}->recall_message_by_count($account, $recall_channel, $recall_history, '(?:recall|mock|ftfy)');
|
$message = $self->{database}->recall_message_by_count($account, $recall_channel, $recall_history, '(?:recall|mock|ftfy|fix)');
|
||||||
|
|
||||||
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|mock|ftfy)');
|
$message = $self->{database}->recall_message_by_text($account, $recall_channel, $recall_history, '(?:recall|mock|ftfy|fix)');
|
||||||
|
|
||||||
if (not defined $message) {
|
if (not defined $message) {
|
||||||
if (defined $account) {
|
if (defined $account) {
|
||||||
|
Loading…
Reference in New Issue
Block a user