From 57cad7a8d9ef6b0076d18e5ca86d187eaacd4404 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 12 Mar 2010 20:36:38 -0500 Subject: [PATCH] fixing bug, wasn't reporting back right --- plugins/factoids.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/factoids.pm b/plugins/factoids.pm index e66a45e..d24f1f2 100644 --- a/plugins/factoids.pm +++ b/plugins/factoids.pm @@ -127,9 +127,9 @@ sub command { #i lost the object oriented calling here, but i don't care too much, BECAUSE this avoids using strings for the calling, i might change that. $fact_string = $commandhash{$1}->($self,$subject, $said->{name}, $said); } - elsif ($subject =~ m|^\s*(.*?)\s*=~\s*s/([^/]+)/([^/]+)/([gi]*)\s*$|i) + elsif ($subject =~ m|^\s*(.*?)\s*=~\s*s/([^/]+)/([^/]+)/([gi]*)|i) { - return $self->get_fact_substitute( $subject, $said->{name}, $said); + $fact_string = $self->get_fact_substitute( $subject, $said->{name}, $said); } else { $fact_string = $self->get_fact( $pm, $said, $subject, $said->{name}, $call_only );