From a6756de013b56074d00d8e11d97a98f1337e506f Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 12 May 2024 20:06:58 +0200 Subject: [PATCH] make sure renewal is set before sending out notify --- notify.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notify.pl b/notify.pl index 6f71afa..8801e1b 100755 --- a/notify.pl +++ b/notify.pl @@ -142,6 +142,11 @@ sub mailout { $paypal_url = "SPONSORED"; } + if ($_donated !~ m/renewal/) { + print "renewal not set\n"; + next; + } + my $stripe = $stripe_urls{$_payment} || ''; my $ideal = $ideal_url || "https://bunq.me/openbsdams/${_payment}/${_instance}%20$conf{'conf'}{'SERVER'}"; my $paypal = $paypal_url || "https://paypal.me/runbsd/${_payment}eur";