mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
MessageHistory: recall
must be used via /msg if count > 2
This commit is contained in:
parent
ea54fad8c6
commit
7ce2eb87d2
@ -342,6 +342,10 @@ sub recall_message {
|
||||
if (not defined $context_account) { return "I don't know anybody named $recall_context."; }
|
||||
}
|
||||
|
||||
if ($from =~ /^#/ and ($recall_count > 2 or $recall_after > 2 or $recall_before > 2)) {
|
||||
return "Please use `recall` from private message when recalling multiple messages. Just add \"-c $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');
|
||||
|
Loading…
Reference in New Issue
Block a user