X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Fsms.pl;h=d4f55ebe0976952e8f4ca349ca7035a32ed823af;hb=d786ab3e431fdb29854f4d80fe430c5438d649b6;hp=aef5c7dc24be32fc081e0bd532cdcf705446569d;hpb=f85a252b56bf58c0280d5484397ac8b69dcbdc29;p=ndwebbie.git diff --git a/scripts/sms.pl b/scripts/sms.pl index aef5c7d..d4f55eb 100755 --- a/scripts/sms.pl +++ b/scripts/sms.pl @@ -4,6 +4,10 @@ use strict; use warnings; use feature ':5.10'; +no if $] >= 5.018, warnings => "experimental::smartmatch"; + +use local::lib; + use Encode; use LWP::UserAgent; @@ -63,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 {