diff --git a/plugins/factoids.pm b/plugins/factoids.pm index 737b466..4414c47 100644 --- a/plugins/factoids.pm +++ b/plugins/factoids.pm @@ -362,7 +362,7 @@ sub get_fact_substitute { if ($said->{body} =~ m|^(?:\s*substitute)?\s*(.*?)\s*=~\s*s/([^/]+)/([^/]+)/([gi]*)\s*$|i) { - my ($subject, $match, $subst, $flags) = ($1, $2, $3); + my ($subject, $match, $subst, $flags) = ($1, $2, $3, $4); my $fact = $self->_db_get_fact( _clean_subject( $subject ), $name );