]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/botmail.pl
dbDel takes a hash, dbm untested
[infobot.git] / src / Modules / botmail.pl
index 6f5d10593b74c730dc1bacf2de9112f608ec2ca3..094e5f5adb71679ca9802284856e88941ab4196e 100644 (file)
@@ -66,7 +66,7 @@ sub next {
        my $ago = &::Time2String(time() - $hash{'time'});
        &::msg($recipient, "From $hash{srcwho} ($hash{srcuh}) on $hash{time} [$ago]:");
        &::msg($recipient, $hash{'msg'});
-       #&::dbDel("botmail", "id", $hash{id}); # FIXME need a way to delete from 2 keys (hash)
+       &::dbDel("botmail", { 'dstwho'=>$hash{dstwho}, 'srcwho'=>$hash{srcwho}});
     }
 }