git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@733
c11ca15a-4712-0410-83d8-
924469b57eb5
push(@link, $link);
my $newr = &getReply($link);
+
+ # no such factoid. try commands
+ if (!defined $newr || $newr =~ /^0?$/) {
+ # support command redirection.
+ # recursive cmdHooks aswell :)
+ my $done = 0;
+ $done++ if &parseCmdHook("main", $link);
+ $done++ if &parseCmdHook("extra", $link);
+ $message = $link;
+ $done++ unless (&Modules());
+
+ return;
+ }
last if (!defined $newr or $newr eq "");
$result = $newr;
}