From: timriker Date: Thu, 19 May 2005 06:14:54 +0000 (+0000) Subject: cmd: editing? or maybe not - dondelelcaro X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=884e4a05e6201d600a454c6ac7d3e39733249764;p=infobot.git cmd: editing? or maybe not - dondelelcaro git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1222 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Factoids/Question.pl b/blootbot/src/Factoids/Question.pl index 1107867..b3c7e23 100644 --- a/blootbot/src/Factoids/Question.pl +++ b/blootbot/src/Factoids/Question.pl @@ -188,6 +188,9 @@ sub factoidArgs { # TODO: cache this, update cache when altered. !!! !!! !!! # my $t = &timeget(); my ($first) = split(/\s+/, $str); + + # ignore split to commands [dumb commands vs. factoids] (editing commands?) + return undef if $str =~ /\s+\=\~\s+s[\#\/\:]/; my @list = &searchTable("factoids", "factoid_key", "factoid_key", "^cmd: $first "); # my $delta_time = &timedelta($t); # &DEBUG("factArgs: delta_time = $delta_time s");