diff --git a/lib/Bot/BB3/Roles/IRC.pm b/lib/Bot/BB3/Roles/IRC.pm index 1c8b8ab..17cc3b1 100644 --- a/lib/Bot/BB3/Roles/IRC.pm +++ b/lib/Bot/BB3/Roles/IRC.pm @@ -309,6 +309,7 @@ sub _said { $said->{body} = $body; $said->{addressed} = 1; $said->{addressed_as} = $1; + $said->{backdressed} = 1; } } diff --git a/plugins/factoids.pm b/plugins/factoids.pm index 31af94a..0ff70ea 100644 --- a/plugins/factoids.pm +++ b/plugins/factoids.pm @@ -512,12 +512,12 @@ sub basic_get_fact { return "$fact->{predicate}"; } } - else { + else { my $soundex = soundex( _clean_subject($subject, 1) ); my $matches = $self->_soundex_matches( $soundex ); - if( $matches and @$matches ) { + if( ($matches and @$matches) && (!$said->{backdressed}) ) { return "No factoid found. Did you mean one of these: " . join " ", map "[$_]", @$matches; } else {