1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 16:55:42 -04:00

fixing bug, wasn't reporting back right

This commit is contained in:
Ryan Voots 2010-03-12 20:36:38 -05:00
parent 2fe21433a0
commit 57cad7a8d9

View file

@ -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 );