3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 23:39:24 +01:00

MessageHistory: correct behavior of recall -n without history

This commit is contained in:
Pragmatic Software 2020-04-30 11:48:53 -07:00
parent de73fa6d56
commit 3a3ed38162

View File

@ -246,8 +246,8 @@ sub recall_message {
# imply -x if -n > 1 and no history and -x isn't already set to somebody
if ($recall_count > 1 and not defined $recall_history and not defined $recall_context) { $recall_context = $recall_nick; }
# make -n behave like -b if -n > 1 and nick is context
if ((defined $recall_context and not defined $recall_history) and $recall_count > 1) {
# make -n behave like -b if -n > 1 and no history is specified
if (not defined $recall_history and $recall_count > 1) {
$recall_before = $recall_count - 1;
$recall_count = 0;
}