mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
Fix recall logic for integer history
This commit is contained in:
parent
8691e6d7bb
commit
d4eb08856a
@ -324,11 +324,11 @@ sub recall_message {
|
|||||||
} else {
|
} else {
|
||||||
return "$result.";
|
return "$result.";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
return "Please choose a history between 1 and $max_messages";
|
return "Please choose a history between 1 and $max_messages";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$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');
|
||||||
|
Loading…
Reference in New Issue
Block a user