]> git.donarmstrong.com Git - infobot.git/commitdiff
dbm touches
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 22 Nov 2002 05:10:53 +0000 (05:10 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 22 Nov 2002 05:10:53 +0000 (05:10 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@679 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/botmail.pl
src/dbm.pl

index 094e5f5adb71679ca9802284856e88941ab4196e..6d40cd9c3587a64095034b393c087db4e1cc7978 100644 (file)
@@ -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;
index f7fcd7b38be1ae460f32f87b03cc46e55e7cbb90..e1300ed462ce0aeabf0ca481a61ae2848656ab74 100644 (file)
@@ -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'