diff options
Diffstat (limited to 'localsendsms')
-rwxr-xr-x | localsendsms | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/localsendsms b/localsendsms index 809be51..7ba5ccb 100755 --- a/localsendsms +++ b/localsendsms @@ -106,6 +106,9 @@ sub sendmsg { } } -&sendmsg($sms_phone, $phone, "message", &transliterate(decode('UTF-8', join(' ', @ARGV)))); +my $msg = join(' ', @ARGV); +# FIXME: stop jugling with leading plus when no longer stripped from input +$msg =~ s/(?<=\s)(36\d{9}\s)/+$1/g; +&sendmsg($sms_phone, $phone, "message", &transliterate(decode('UTF-8', $msg))); 1; |