From 76dcc0a8ee0c311b74aad689a5434fd8f12e480a Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 31 May 2020 17:14:03 -0700 Subject: [PATCH] MessageHistory: allow recalling multiple messages in-channel again --- PBot/MessageHistory.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/PBot/MessageHistory.pm b/PBot/MessageHistory.pm index 988b37e0..a12fe348 100644 --- a/PBot/MessageHistory.pm +++ b/PBot/MessageHistory.pm @@ -368,10 +368,6 @@ sub cmd_recall_message { if (not defined $context_account) { return "I don't know anybody named $recall_context."; } } - if ($context->{from} =~ /^#/ and ($recall_count > 5 or $recall_after > 5 or $recall_before > 5)) { - return "Please use `recall` from private message when recalling multiple messages. Just add \"-c $context->{from}\" to the command and /msg it to me."; - } - my $messages = $self->{database}->get_message_context($message, $recall_before, $recall_after, $recall_count, $recall_history, $context_account); my $max_recall_time = $self->{pbot}->{registry}->get_value('messagehistory', 'max_recall_time');