Browse Source

Do not give up so easy; this commit successfully creates ~/.hush/list/list.conf

master
Jonathan "Duke" Leto 7 years ago
parent
commit
b34dd0d3fc
  1. 1
      bin/hushlist
  2. 4
      lib/Hush/List.pm

1
bin/hushlist

@ -2,6 +2,7 @@
use strict;
use warnings;
use Try::Tiny;
use lib 'lib';
use Hush::List;
my $command = shift || help();

4
lib/Hush/List.pm

@ -11,7 +11,7 @@ my $HUSH_CONFIG_DIR = $ENV{HUSH_CONFIG_DIR} || catdir($ENV{HOME},'.hush');
my $HUSHLIST_CONFIG_DIR = $ENV{HUSH_CONFIG_DIR} || catdir($HUSH_CONFIG_DIR, 'list');
#TODO: create this if not specified
my $ZADDR = $ENV{HUSH_LIST_ZADDR} || die 'No funding zaddr found';
my $ZADDR = $ENV{HUSH_LIST_ZADDR};
sub _sanity_checks {
if (!-e $HUSH_CONFIG_DIR ) {
@ -100,7 +100,7 @@ sub send_message {
# this could blow up for a bajillion reasons...
try {
$rpc->z_sendmany($from, $amount, $recipients, $memo);
$rpc->z_sendmany($from, $amount, $recipients, $message);
} catch {
die "caught RPC error: $_";
} finally {

Loading…
Cancel
Save