From 93106e7b0898d0e5c6dbf46eec99246a1375f844 Mon Sep 17 00:00:00 2001 From: timriker Date: Fri, 22 Nov 2002 05:10:53 +0000 Subject: [PATCH] dbm touches git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@679 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Modules/botmail.pl | 5 +++++ src/dbm.pl | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/Modules/botmail.pl b/src/Modules/botmail.pl index 094e5f5..6d40cd9 100644 --- a/src/Modules/botmail.pl +++ b/src/Modules/botmail.pl @@ -14,6 +14,11 @@ use strict; sub parse { my($what) = @_; + if ($::param{'DBType'} =~ /^dbm/i) { + # FIXME multi field indexed tables not supported under dbm + &::msg($::who, "botmail disabled for $::param{'DBType'}"); + return; + } if (!defined $what or $what =~ /^\s*$/) { &::help("botmail"); return; diff --git a/src/dbm.pl b/src/dbm.pl index f7fcd7b..e1300ed 100644 --- a/src/dbm.pl +++ b/src/dbm.pl @@ -14,9 +14,15 @@ package main; use vars qw(%factoids %param); { + # FIXME we don't handle multiply indexes tables + # perhaps we should combine the keys with a ':' or something? + # the spaces below separate the keys from the rest + # of the fields. + # Tim Riker thinks that freshmeat below should be a single index my %formats = ( 'factoids', [ 'factoid_key', + 'requested_by', 'requested_time', 'requested_count', @@ -31,12 +37,14 @@ use vars qw(%factoids %param); 'freshmeat', [ 'projectname_short', 'latest_version', + 'license', 'url_homepage', 'desc_short' ], 'rootwarn', [ 'nick', + 'attempt', 'time', 'host', @@ -44,6 +52,7 @@ use vars qw(%factoids %param); ], 'seen', [ 'nick', + 'time', 'channel', 'host', @@ -53,12 +62,14 @@ use vars qw(%factoids %param); 'nick', 'type', 'channel', + 'time', 'counter' ], 'botmail', [ 'srcwho', 'dstwho', + 'srcuh', 'time', 'msg' -- 2.39.2