From: Michael Andreen Date: Sat, 14 Jan 2017 10:11:30 +0000 (+0100) Subject: Don't resend sms when out of credits X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=commitdiff_plain;h=bfc0e641446d3b89c2694fc31ba18f7a9027f461 Don't resend sms when out of credits --- diff --git a/scripts/sms.pl b/scripts/sms.pl index dd60bda..d4f55eb 100755 --- a/scripts/sms.pl +++ b/scripts/sms.pl @@ -67,7 +67,7 @@ eval{ when(/^ID: (\S+)/){ $update->execute($msg->{id},$1,'Sent'); } - when(/^ERR: (?:302|128|114|113|105),(.*)/){ + when(/^ERR: (?:301|302|128|114|113|105),(.*)/){ $update->execute($msg->{id},undef,$1); } default {