From 875757af015e51a0d7eaad712a1ab6b4385b7dd5 Mon Sep 17 00:00:00 2001 From: dms Date: Sat, 16 Sep 2000 14:12:01 +0000 Subject: [PATCH] added ddesc for desc search git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@107 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/CommandStubs.pl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/CommandStubs.pl b/src/CommandStubs.pl index 7936155..35a9b3e 100644 --- a/src/CommandStubs.pl +++ b/src/CommandStubs.pl @@ -136,6 +136,22 @@ sub Modules { return $noreply; } + # Debian Author Search. + if ($message =~ /^(d|search)desc(\s+(.*))?$/i) { + return $noreply unless (&hasParam("debian")); + + my $query = $2; + if (!defined $query) { + &help("ddesc"); + return $noreply; + } + + &Forker("debian", sub { &Debian::searchDesc($query); } ); + + $cmdstats{'Debian Desc Search'}++; + return $noreply; + } + # Debian Incoming Search. if ($message =~ /^dincoming$/i) { return $noreply unless (&hasParam("debian")); -- 2.39.2