From 50c5c15fbd9b95427b146f601d3f613ecd80224a Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 9 Dec 2016 15:31:36 -0800 Subject: [PATCH] recall now skips nick-prefix and botnick-postfix messages --- PBot/MessageHistory_SQLite.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/MessageHistory_SQLite.pm b/PBot/MessageHistory_SQLite.pm index 62e2e1e3..403ba43e 100644 --- a/PBot/MessageHistory_SQLite.pm +++ b/PBot/MessageHistory_SQLite.pm @@ -1052,7 +1052,7 @@ sub recall_message_by_text { my $bot_trigger = $self->{pbot}->{registry}->get_value('general', 'trigger'); my $botnick = $self->{pbot}->{registry}->get_value('irc', 'botnick'); foreach my $message (@$messages) { - next if $message->{msg} =~ m/^$botnick.? $ignore_command/ or $message->{msg} =~ m/^$bot_trigger$ignore_command/; + next if $message->{msg} =~ m/^$botnick.? $ignore_command/i or $message->{msg} =~ m/^(?:\s*[^,:\(\)\+\*\/ ]+[,:]?\s+)?$bot_trigger$ignore_command/i or $message->{msg} =~ m/^\s*$ignore_command.? $botnick$/i; return $message; } return undef;