From: dms Date: Wed, 3 Jan 2001 13:34:52 +0000 (+0000) Subject: - unified hook changes. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ee8b861b7ff1abaab3b3f51f0c31f05977ac305e;p=infobot.git - unified hook changes. - ignore >64 questions. - support moron language. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@217 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Process.pl b/blootbot/src/Process.pl index a6193e0..1d44471 100644 --- a/blootbot/src/Process.pl +++ b/blootbot/src/Process.pl @@ -541,16 +541,18 @@ sub FactoidStuff { return; } - if ($addressed) { - if (length $message < 64) { - &status("unparseable: $message"); - &performReply( &getRandom(keys %{$lang{'dunno'}}) ); - } else { - &status("unparse-ignore: $message"); - } - - $count{'Dunno'}++; + return unless ($addressed); + + if (length $message > 64) { + &status("unparseable-moron: $message"); + &performReply( &getRandom(keys %{$lang{'moron'}}) ); + $count{'Moron'}++; + return; } + + &status("unparseable: $message"); + &performReply( &getRandom(keys %{$lang{'dunno'}}) ); + $count{'Dunno'}++; } }